Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-03 23:59:03.126727
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
 val : 1 : upload photos already in processing! 
 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 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,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 dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:00:06.584255
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0dd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.20049571990966797 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:00:15.415745
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f5f510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7858223915100098 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:00:45.406284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7842791080474854 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:01:03.967629
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3cf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7491209506988525 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:01:12.750364
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7870311737060547 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:01:42.629537
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755726f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7827153205871582 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:02:03.290122
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ad70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18158268928527832 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:02:12.942235
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d86f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7862467765808105 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:02:42.966025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558d770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7915434837341309 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:03:03.270824
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549add0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2175581455230713 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:03:12.190005
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755016d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7861053943634033 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:03:42.165702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7863008975982666 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:04:02.835337
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18354153633117676 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:04:12.432838
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c95b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7868225574493408 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:04:42.355954
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7831072807312012 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:05:03.433475
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754abe30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.22287797927856445 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:05:12.692995
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7887072563171387 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:05:42.662621
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7825882434844971 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:06:03.293881
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18185782432556152 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:06:12.966177
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7837347984313965 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:06:42.930018
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d3690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7838790416717529 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:07:03.255823
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fdd790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.22542381286621094 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:07:12.232580
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7916584014892578 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:07:42.290657
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7897841930389404 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:08:02.936538
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554fe30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18282842636108398 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:08:12.521480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7858357429504395 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:08:42.490962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7838108539581299 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:09:03.929904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557aeb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.21336078643798828 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:09:12.746488
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755066d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7874157428741455 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:09:42.810611
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7904610633850098 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:10:03.458827
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ee50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18169474601745605 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:10:13.085478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755726f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7877609729766846 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:10:42.999558
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7881231307983398 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:11:03.239211
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557fe30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.23650455474853516 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:11:12.269026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7841739654541016 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:11:42.302589
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d27b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7837212085723877 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:12:02.893055
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18415284156799316 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:12:12.555625
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7847707271575928 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:12:42.514782
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7866337299346924 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:13:03.734818
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ace30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2362961769104004 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:13:12.805623
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7819309234619141 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:13:42.843320
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7843630313873291 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:14:03.479872
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18256664276123047 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:14:13.043213
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558c750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7824621200561523 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:14:43.048323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755806d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7819087505340576 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:15:03.205820
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cee30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1430933475494385 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:15:12.259151
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755686d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7867648601531982 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:15:42.296396
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7855219841003418 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:16:02.934264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6c50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18515682220458984 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:16:12.481304
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7850215435028076 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:16:42.524848
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7911405563354492 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:17:03.860387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bae70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2368330955505371 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:17:12.708036
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7842867374420166 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:17:42.753782
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7862379550933838 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:18:03.377894
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18330025672912598 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:18:12.948385
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7886264324188232 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:18:42.973265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d56d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.794435977935791 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:19:03.397866
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.21754765510559082 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:19:12.263747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7890284061431885 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:19:42.178434
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e26f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7898154258728027 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:20:02.845897
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18287992477416992 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:20:12.404311
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.787893533706665 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:20:42.335664
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7830798625946045 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:21:03.420724
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ce30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.23364782333374023 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:21:12.542536
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.78359055519104 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:21:42.555240
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7819175720214844 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:22:03.210940
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557bef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1831493377685547 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:22:12.786712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7826197147369385 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:22:42.734411
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755265d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7838973999023438 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:23:04.060988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551be50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.257291316986084 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:23:12.995982
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b66f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.783888578414917 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:23:42.960790
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7850196361541748 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:24:02.631343
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18389630317687988 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:24:12.182351
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75590730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7869710922241211 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:24:42.173193
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7886466979980469 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:25:03.278738
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2551000118255615 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:25:12.366844
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7925565242767334 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:25:42.466158
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7819492816925049 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:26:03.175258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552bdf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.184783935546875 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:26:12.664811
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7861981391906738 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:26:42.661761
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7888298034667969 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:27:04.024621
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537cb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.23392271995544434 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:27:13.018995
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7894418239593506 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:27:42.852960
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7971742153167725 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:28:03.584596
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7dd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18664932250976562 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:28:13.128549
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7981321811676025 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:28:43.027947
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754935b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7850837707519531 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:29:03.269942
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ce30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.22007465362548828 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:29:12.267265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7853682041168213 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:29:42.295494
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e86b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7862443923950195 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:30:02.951580
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18161296844482422 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:30:12.485733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755875d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7889411449432373 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:30:42.624167
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755016d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.792853832244873 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:31:03.925075
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0c90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.23616409301757812 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:31:12.779185
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7902836799621582 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:31:42.811643
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7865099906921387 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:32:03.493652
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eee30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1838688850402832 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:32:13.015621
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7878341674804688 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:32:43.006831
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7971851825714111 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:33:03.411760
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f0d90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.22386646270751953 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:34:02.904001
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5dd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1816103458404541 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:35:03.977014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f3f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.23590946197509766 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:36:02.542385
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754abe10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.9326250553131104 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:37:03.480522
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ece70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6786513328552246 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:38:03.401548
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.851799726486206 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:39:03.197986
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553be50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1661736965179443 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:40:02.540379
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18229174613952637 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:41:03.675236
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.24098777770996094 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:42:03.312067
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18328046798706055 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:43:03.530103
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2100846767425537 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:44:03.009036
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ae70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18654704093933105 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:45:03.883720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552feb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.22233843803405762 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:46:02.605992
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556bcb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18160486221313477 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:47:03.577509
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.24480414390563965 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:48:03.438209
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554cd10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18135523796081543 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:49:03.346738
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.22466731071472168 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:50:03.092821
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1836562156677246 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:51:03.945264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ae50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2400825023651123 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:52:02.729981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551be70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18420672416687012 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:53:03.733534
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.21427226066589355 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:54:03.385174
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1810922622680664 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:55:03.392056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0cf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.27827978134155273 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:56:03.087089
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fba950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1844937801361084 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:57:04.255247
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2500157356262207 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:59:03.469451
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4d10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.20051193237304688 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:59:32.611976
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558f7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7891714572906494 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 00:59:42.685361
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16953086853027344 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 00:59:53.234394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f43410>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7837188243865967 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:00:02.855003
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3002400398254395 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:00:32.408364
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755165f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7859115600585938 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:00:42.418587
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1694490909576416 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:00:52.486944
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755435f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7867474555969238 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:01:03.772338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.21909189224243164 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:01:32.702373
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8037514686584473 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:01:42.812561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551fe10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16930580139160156 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:01:52.697854
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75515590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7938523292541504 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:02:03.312276
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7620e710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1825251579284668 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:02:32.887103
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7945733070373535 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:02:42.955561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75486eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17023468017578125 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:02:52.996927
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75590790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7875895500183105 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:03:03.328682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ad30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2351064682006836 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:03:32.340898
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.789198637008667 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:03:42.259256
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16933894157409668 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:03:52.190428
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558d670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.789527416229248 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:04:02.903363
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dce30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18222904205322266 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:04:32.534902
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75efe7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7917139530181885 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:04:42.516823
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dedb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17040205001831055 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:04:52.333505
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7859816551208496 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:05:03.351296
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75483cb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.26178479194641113 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:05:32.741193
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7619ef70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7980387210845947 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:05:42.623828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17082691192626953 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:05:52.587732
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d76f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7862932682037354 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:06:03.249692
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ceb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18008804321289062 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:06:32.770370
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d86f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7895810604095459 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:06:42.822865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17098760604858398 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:06:52.841052
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.784259557723999 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:07:04.050243
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552d10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.775320053100586 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:07:33.111100
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7971088886260986 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:07:43.046563
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493d10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17009830474853516 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:07:53.041107
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d36b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7865960597991943 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:08:02.748504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489d30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1859149932861328 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:08:32.230977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7845122814178467 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:08:42.251487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1696460247039795 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:08:52.261252
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c57f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7900238037109375 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:09:03.455542
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.22000765800476074 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:09:32.437013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7916131019592285 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:09:42.460374
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ecf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16898155212402344 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:09:52.501004
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7858772277832031 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:10:03.139150
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ae10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18392300605773926 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:10:32.697301
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7919430732727051 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:10:42.841157
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e9eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16994667053222656 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:10:52.667789
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f66f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7895488739013672 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:11:03.876656
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547cd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.25397348403930664 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:11:32.902850
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7955682277679443 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:11:42.898883
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16903090476989746 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:11:52.831726
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7910709381103516 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:12:03.421998
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75480d90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1833341121673584 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:12:33.052627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7940380573272705 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:12:43.069462
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ceb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1689453125 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:12:53.047957
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7838106155395508 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:13:03.041006
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2500455379486084 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:13:32.261234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d96b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7930097579956055 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:13:42.250599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16875696182250977 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:13:52.245156
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7624f750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.795825719833374 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:14:02.895266
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18558835983276367 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:14:32.435128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7855138778686523 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:14:42.453126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5dd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16869711875915527 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:14:52.422349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7860250473022461 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:15:03.729713
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.23047351837158203 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:15:32.673922
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7857658863067627 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:15:42.624148
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76512f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16920065879821777 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:15:52.658658
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7873156070709229 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:16:03.373536
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18399786949157715 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:16:32.908220
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7921979427337646 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:16:42.860265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1692650318145752 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:16:52.932654
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b46f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7834622859954834 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:17:04.094786
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ce70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.225311279296875 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:17:33.204671
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7864823341369629 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:17:43.169275
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfd90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17023015022277832 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:17:53.159579
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d56b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7891800403594971 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:18:02.801662
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548be70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18424248695373535 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:18:32.355346
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7862451076507568 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:18:42.348072
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16909050941467285 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:18:52.373734
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7896595001220703 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:19:03.557546
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.24617815017700195 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:19:32.582793
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8033938407897949 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:19:42.640977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557f30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1704564094543457 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:19:52.610943
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7930440902709961 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:20:03.299602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754efe50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18455100059509277 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:20:32.816467
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7912933826446533 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:20:42.893048
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17051982879638672 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:20:52.800085
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7838623523712158 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:21:04.169479
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.24312067031860352 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:21:32.988629
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75527770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7921969890594482 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:21:43.038779
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17023992538452148 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:21:53.015670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7888336181640625 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:22:02.662505
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754feeb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1835918426513672 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:22:32.232280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7866544723510742 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:22:42.227530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1694657802581787 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:22:52.222453
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7896621227264404 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:23:03.565046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.24024534225463867 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:23:32.529289
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755106d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7833380699157715 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:23:42.511517
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552cdf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17017769813537598 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:23:52.481631
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7845537662506104 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:24:03.167336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1837754249572754 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:24:32.676221
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7888917922973633 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:24:42.701104
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75573e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16910147666931152 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:24:52.718817
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558e7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.787956714630127 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:25:03.744756
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548cf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.342400074005127 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:25:32.966940
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e07b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.9416711330413818 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:25:42.983849
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553be30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16956090927124023 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:25:52.952154
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7952642440795898 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:26:02.606806
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75474ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.6100432872772217 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:26:32.171962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a86b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7837495803833008 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:26:42.153905
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524c70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1720259189605713 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:26:52.167610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7898852825164795 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:27:03.166294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ce90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2585296630859375 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:27:32.378968
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755095b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7908732891082764 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:27:42.415480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ddcd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17006921768188477 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:27:52.337548
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7858405113220215 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:28:02.955377
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x761ca790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1817171573638916 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:28:32.535117
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7861433029174805 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:28:42.577176
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16878461837768555 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:28:52.609005
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.784571647644043 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:29:03.986975
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.21968317031860352 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:29:32.836116
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7919321060180664 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:29:42.889671
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16956615447998047 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:29:52.924085
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7948455810546875 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:30:03.537948
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522c70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18285298347473145 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:30:33.109828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7903075218200684 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:30:43.174959
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17047810554504395 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:30:53.110784
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.787236213684082 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:31:03.365827
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.21904969215393066 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:31:32.300890
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.784759521484375 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:31:42.322576
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ae50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17028188705444336 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:31:52.334793
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7895879745483398 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:32:02.999102
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1841130256652832 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:32:32.538888
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75527650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7918617725372314 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:32:42.627741
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17043256759643555 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:32:52.516422
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7899596691131592 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:33:03.875900
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ae10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.21566557884216309 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:33:32.765707
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7956283092498779 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:33:42.805626
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554bdd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17093944549560547 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:33:52.764063
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a46d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7855074405670166 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:34:03.403862
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cadb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18308091163635254 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:34:32.992447
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558b770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7970502376556396 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:34:43.042931
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ffe10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17016816139221191 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:34:52.983535
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7915363311767578 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:35:03.116256
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2146625518798828 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:35:32.309626
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.789607048034668 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:35:42.177827
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ee90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16918706893920898 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:35:52.257033
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755187d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.786780834197998 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:36:02.912415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18653512001037598 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:36:32.453864
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7893047332763672 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:36:42.464873
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16991424560546875 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:36:52.519707
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7851862907409668 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:37:03.615951
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555be50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.23434686660766602 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:37:32.721144
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755615f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7923436164855957 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:37:42.804412
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549fe50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16911101341247559 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:37:52.831811
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755026d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7908928394317627 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:38:03.516473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552fe10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1828908920288086 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:38:33.027889
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.9369397163391113 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:38:43.017930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7d90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17077922821044922 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:38:53.172941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.9374322891235352 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:39:03.311977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.23835015296936035 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:39:32.384529
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755275b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7918703556060791 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:39:42.410029
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1695713996887207 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:39:52.386627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7925801277160645 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:40:02.992558
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bdcd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1867539882659912 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:40:32.580221
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558b6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7876801490783691 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:40:42.563188
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560cd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16933178901672363 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:40:52.534479
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7870094776153564 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:41:03.548832
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ae30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.23933815956115723 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:41:32.800448
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7930188179016113 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:41:42.808494
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17159533500671387 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:41:52.782763
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7843461036682129 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:42:03.376142
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18364953994750977 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:42:32.971034
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8004460334777832 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:42:43.009497
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556de30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17024922370910645 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:42:52.957627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7915408611297607 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:43:03.134047
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.22429180145263672 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:43:32.192699
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.788332462310791 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:43:42.168749
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bde90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17134666442871094 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:43:52.168441
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7843132019042969 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:44:02.810992
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cadf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18063807487487793 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:44:32.342246
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.786264181137085 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:44:42.393455
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544d30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16929078102111816 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:44:52.396043
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7913603782653809 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:45:03.404604
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cae30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2664201259613037 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:45:32.525591
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7873995304107666 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:45:42.581404
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1698000431060791 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:45:52.663743
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7917258739471436 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:46:03.266268
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18285322189331055 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:46:32.853354
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7974250316619873 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:46:42.846150
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9d70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17171406745910645 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:46:52.921108
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8000383377075195 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:47:04.194921
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580cd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.22130918502807617 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:47:33.151731
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755586d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7887556552886963 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:47:43.103261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561d50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17021417617797852 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:47:53.127728
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7904365062713623 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:48:02.803030
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 5.035903692245483 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:48:32.364595
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7954404354095459 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:48:42.321561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ee30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16900181770324707 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:48:52.332262
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558b730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.9452133178710938 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:49:03.330427
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490db0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.9806478023529053 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:49:32.531718
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ae750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7868125438690186 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:49:42.582473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17037343978881836 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:49:52.660173
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7863972187042236 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:50:03.267581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548be50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18393707275390625 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:50:32.910775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7932429313659668 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:50:42.952291
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fbd50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17035341262817383 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:50:52.807956
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7868533134460449 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:51:03.970660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ece90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.23468303680419922 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:51:33.036456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7923729419708252 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:51:43.112268
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cbe90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16922569274902344 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:51:53.019717
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.79319167137146 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:52:02.763410
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18883705139160156 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:52:32.266211
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7906825542449951 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:52:42.278971
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1696028709411621 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:52:52.209077
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7904171943664551 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:53:03.188535
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.24158024787902832 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:53:32.435677
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7927658557891846 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:53:42.438362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557bcb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16965579986572266 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:53:52.496543
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7941186428070068 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:54:03.145707
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553be10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18562698364257812 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:54:32.685792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c66b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7878756523132324 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:54:42.741698
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ae10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16949915885925293 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:54:52.768276
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755657d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7880270481109619 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:55:04.117566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551dcf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2265167236328125 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:55:33.069017
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7918510437011719 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:55:43.036752
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16961431503295898 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:55:53.059111
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f35f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7869236469268799 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:56:02.658985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ee70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18340730667114258 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:56:32.266542
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7853083610534668 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:56:42.310053
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ce50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16964316368103027 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:56:52.326458
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75589670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7897357940673828 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:57:03.489268
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2310171127319336 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:57:32.575485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7871241569519043 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:57:42.497777
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dee70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16941571235656738 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:57:52.501986
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7917301654815674 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:59:03.763031
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.20741009712219238 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:59:33.018884
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7909500598907471 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 01:59:43.059426
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75a43c50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17015743255615234 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 01:59:52.963470
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7865760326385498 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:00:02.708625
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552add0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1843123435974121 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:00:32.171349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f032d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7882881164550781 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:00:42.184667
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1711409091949463 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:00:52.195206
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7917289733886719 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:01:03.592902
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.23631024360656738 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:01:32.410323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7849593162536621 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:01:42.457628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1710059642791748 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:01:52.392363
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7957370281219482 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:02:03.016702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18443727493286133 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:02:32.595645
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558d750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7912023067474365 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:02:42.615744
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553fe30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17043542861938477 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:02:52.602547
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7850296497344971 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:03:03.820336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.23097896575927734 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:03:32.897425
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.795788049697876 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:03:42.793974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ddf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17158746719360352 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:03:52.986221
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7851831912994385 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:04:02.706814
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ed50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18885469436645508 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:04:32.158322
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7918682098388672 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:04:42.255618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1703341007232666 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:04:52.171687
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7857060432434082 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:05:03.598764
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.22217464447021484 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:05:32.388487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7858238220214844 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:05:42.383616
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75484dd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17027664184570312 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:05:52.386845
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755187b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7926967144012451 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:06:03.116609
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555cd30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18273329734802246 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:06:32.624884
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7920057773590088 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:06:42.578380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0cf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16908860206604004 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:06:52.663199
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7850551605224609 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:07:04.084702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552acf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2123551368713379 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:07:32.908078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.790503978729248 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:07:42.993891
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549bc30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17003512382507324 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:07:52.921748
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7881021499633789 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:08:03.605802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cbd70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18384218215942383 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:08:33.187665
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7966549396514893 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:08:43.286801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754afe70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1703026294708252 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:08:53.105735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754987b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7886760234832764 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:09:03.459527
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2210865020751953 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:09:32.412416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.784914493560791 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:09:42.415561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1695258617401123 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:09:52.360620
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.787877082824707 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:10:03.017657
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eadf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18413376808166504 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:10:32.591826
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7875738143920898 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:10:42.530473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75514e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1693897247314453 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:10:52.535632
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7883090972900391 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:11:03.630517
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.21487116813659668 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:11:32.840679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7863495349884033 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:11:42.804385
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bedd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17017269134521484 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:11:52.754702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7863545417785645 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:12:03.422611
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1836225986480713 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:12:33.007005
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755717d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7979824542999268 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:12:42.959113
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eee10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17106962203979492 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:12:53.042630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7868208885192871 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:13:03.498750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552fe50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2126753330230713 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:13:32.338056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7961273193359375 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:13:42.284678
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16963553428649902 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:13:52.217550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7957208156585693 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:14:02.947671
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1793527603149414 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:14:32.436850
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7928051948547363 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:14:42.441856
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16936492919921875 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:14:52.452677
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75573770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.78914475440979 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:15:03.575676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cee70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.27106261253356934 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:15:32.683908
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755386f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7903177738189697 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:15:42.667393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550cdd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16991329193115234 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:15:52.644567
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7882404327392578 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:16:03.301728
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7d10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 4.815907716751099 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:16:32.827242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755367d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.9371967315673828 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:16:42.825937
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16983246803283691 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:16:52.823141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755366d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7876622676849365 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:17:03.994759
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553cd30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2267451286315918 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:17:33.025286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d56f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.796893835067749 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:17:43.043585
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17179536819458008 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:17:53.044152
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f27b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7896981239318848 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:18:02.632458
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1818857192993164 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:18:32.255620
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7870850563049316 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:18:42.288115
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551bdf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16924834251403809 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:18:52.205790
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7951760292053223 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:19:03.582735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499d10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.25011444091796875 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:19:32.412223
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7884297370910645 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:19:42.422273
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16955208778381348 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:19:52.478376
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7851805686950684 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:20:03.132999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dacd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18371963500976562 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:20:32.719176
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7877135276794434 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:20:42.688707
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ebc10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17092132568359375 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:20:52.672058
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e95f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.793954610824585 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:21:03.742153
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2346200942993164 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:21:33.021231
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755825d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8089432716369629 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:21:42.910427
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17174267768859863 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:21:52.969994
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d77b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.790799617767334 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:22:02.729957
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1db0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18420696258544922 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:22:32.215857
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7918014526367188 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:22:42.200545
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17022299766540527 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:22:52.166177
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7851142883300781 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:23:03.545319
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.21418237686157227 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:23:32.465351
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7899022102355957 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:23:42.460556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17037272453308105 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:23:52.377331
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7926015853881836 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:24:03.042224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556de30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1904284954071045 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:24:32.590073
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7855885028839111 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:24:42.577750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754abdf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1694962978363037 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:24:52.565918
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755336d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.787914514541626 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:25:03.764031
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cfe30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2301654815673828 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:25:32.798583
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7971785068511963 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:25:42.840478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519d10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1725013256072998 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:25:52.789830
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7918336391448975 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:26:03.412395
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d3e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18312788009643555 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:26:33.020702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8001480102539062 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:26:43.010229
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1703779697418213 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:26:52.966208
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.790147066116333 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:27:03.316802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75486df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.24631834030151367 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:27:32.175478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7887372970581055 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:27:42.181594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754abef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16930818557739258 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:27:52.198495
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755136d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.787987470626831 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:28:02.801613
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cee70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1844785213470459 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:28:32.467172
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7918245792388916 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:28:42.415390
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16955828666687012 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:28:52.430211
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7953906059265137 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:29:03.583234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e9eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2711672782897949 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:29:32.661245
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7916982173919678 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:29:42.762136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554aef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1706094741821289 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:29:52.657848
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7897853851318359 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:30:03.314318
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510d10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1871662139892578 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:30:32.844896
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.9334902763366699 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:30:42.852452
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f0c90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16913175582885742 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:30:52.967934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7902419567108154 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:31:02.954940
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551be30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5372395515441895 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:31:32.258897
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7914614677429199 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:31:42.256831
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557bed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16963839530944824 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:31:52.270644
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7934765815734863 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:32:02.956108
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18773913383483887 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:32:32.465868
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552f710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7895312309265137 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:32:42.456055
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aedf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16948938369750977 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:32:52.504641
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7955493927001953 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:33:03.784179
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75482e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.22155332565307617 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:33:32.755464
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7951622009277344 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:33:42.742267
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1694033145904541 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:33:52.691221
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ae5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7889964580535889 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:34:03.290273
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18306970596313477 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:34:32.970814
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7974376678466797 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:34:42.863237
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548add0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1693122386932373 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:34:52.909393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7938210964202881 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:35:04.160722
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.22059321403503418 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:35:33.092153
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7918825149536133 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:35:43.133864
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b42890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1698315143585205 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:35:53.161330
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7935700416564941 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:36:02.845988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cbe50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1864945888519287 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:36:32.346978
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.789700984954834 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:36:42.308066
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16953539848327637 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:36:52.343712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.791118860244751 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:37:03.637683
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2203834056854248 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:37:32.642992
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.786466121673584 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:37:42.501905
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16927742958068848 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:37:52.569871
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7880759239196777 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:38:03.335942
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75484ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18267560005187988 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:38:32.821584
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755745d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7897951602935791 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:38:42.804732
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1709461212158203 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:38:52.804597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7924234867095947 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:39:04.057233
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.25053858757019043 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:39:33.142134
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.79660964012146 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:39:43.121580
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1711263656616211 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:39:53.018441
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7972283363342285 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:40:02.699885
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1819915771484375 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:40:32.238644
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75591530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7962939739227295 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:40:42.194443
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550fe90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.169508695602417 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:40:52.199478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.78611159324646 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:41:03.268668
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cadd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2300267219543457 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:41:32.457970
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7884883880615234 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:41:42.418644
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536d90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1699810028076172 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:41:52.407931
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c75f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7882125377655029 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:42:03.196924
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18300390243530273 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:42:32.667465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b0e8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7906532287597656 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:42:42.632919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17115259170532227 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:42:52.680899
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7884252071380615 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:43:03.977587
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562c50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2829477787017822 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:43:32.922920
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7998046875 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:43:42.912766
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.169022798538208 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:43:52.912743
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7962305545806885 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:44:03.486474
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18450284004211426 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:44:33.150990
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755596f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7962815761566162 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:44:43.133266
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17012453079223633 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:44:53.106778
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7927172183990479 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:45:03.229628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549cf10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5411055088043213 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:45:32.306682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7905490398406982 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:45:42.348414
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ae70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16902780532836914 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:45:52.400396
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755306f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7902636528015137 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:46:03.008927
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aee10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18326878547668457 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:46:32.642411
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7966938018798828 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:46:42.609806
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ee50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.169295072555542 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:46:52.581538
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.789534330368042 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:47:03.503511
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75a1ccd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2333364486694336 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:47:32.804000
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7950260639190674 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:47:42.849858
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17027568817138672 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:47:52.783608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7965207099914551 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:48:03.464273
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558cf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18520259857177734 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:48:33.019452
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7920846939086914 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:48:43.027242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5c90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17041420936584473 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:48:52.984611
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7910735607147217 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:49:03.320269
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ee50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.22277474403381348 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:49:32.212425
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f86d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7861590385437012 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:49:42.242115
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1706392765045166 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:49:52.188845
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7858426570892334 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:50:02.969578
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ee70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18093347549438477 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:50:32.465719
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7935092449188232 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:50:42.419866
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16933941841125488 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:50:52.375967
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.792792797088623 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:51:03.531906
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556be70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.23833537101745605 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:51:32.606300
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7942359447479248 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:51:42.578818
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1698627471923828 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:51:52.545308
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f57b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7944910526275635 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:52:03.159584
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553cef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1853320598602295 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:52:32.718040
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755465d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7882790565490723 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:52:42.809471
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16982150077819824 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:52:52.730887
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75de69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7922184467315674 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:53:04.081832
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f90730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.22574090957641602 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:53:33.059018
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75591690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8032722473144531 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:53:42.938904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539dd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1702260971069336 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:53:52.957503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7897193431854248 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:54:02.681737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18805503845214844 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:54:32.164860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7882187366485596 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:54:42.188245
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1700279712677002 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:54:52.135601
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7955975532531738 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:55:03.333239
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ae70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2269306182861328 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:55:32.364968
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7881762981414795 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:55:42.355817
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548e570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16934537887573242 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:55:52.383095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755066d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7887332439422607 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:56:03.065264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18469953536987305 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:56:32.605615
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755145b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7913272380828857 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:56:42.616327
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cadb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16947245597839355 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:56:52.616376
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e9710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7930824756622314 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:57:03.928585
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8cb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.21741294860839844 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:57:32.990892
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755707b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7937021255493164 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:57:42.938614
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17002439498901367 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:57:52.861476
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7925326824188232 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:59:03.034096
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.20981812477111816 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:59:32.255940
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.788999080657959 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 02:59:42.254853
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551fe70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16964340209960938 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 02:59:52.350929
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8054165840148926 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:00:03.046296
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfdb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18415570259094238 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:00:32.578918
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7872004508972168 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:00:42.605854
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16991543769836426 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:00:52.538547
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755197b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7942137718200684 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:01:03.875192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.21663498878479004 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:01:32.724674
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d35f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7953524589538574 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:01:42.719020
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552add0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16966009140014648 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:01:52.751356
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7929587364196777 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:02:03.478430
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549fe90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1831495761871338 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:02:33.012957
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558b770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8228211402893066 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:02:42.974097
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754efdb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16970038414001465 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:02:52.953828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7936651706695557 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:03:03.035803
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ae30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.25130534172058105 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:03:32.160057
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.792081356048584 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:03:42.204665
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16965317726135254 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:03:52.229371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8187432289123535 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:04:02.929141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537f30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1864912509918213 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:04:32.449255
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7891731262207031 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:04:42.446314
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16977381706237793 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:04:52.562206
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7890298366546631 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:05:04.010551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2152113914489746 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:05:32.788121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7884893417358398 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:05:42.807153
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17075395584106445 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:05:52.919065
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7886018753051758 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:06:03.660245
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513d70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1837613582611084 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:06:33.136818
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.92903733253479 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:06:43.627345
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f456b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1708064079284668 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:06:53.225941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75589510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7969388961791992 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:07:03.187088
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.0788824558258057 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:07:32.397852
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755687d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7882864475250244 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:07:42.466887
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0cd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16950154304504395 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:07:52.541397
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7962439060211182 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:08:03.176042
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18130826950073242 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:08:32.821072
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7935433387756348 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:08:42.861023
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ce10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1702594757080078 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:08:52.748479
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7937138080596924 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:09:04.231743
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fde70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2139298915863037 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:09:33.071645
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c27b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7931044101715088 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:09:43.089954
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16994237899780273 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:09:52.965027
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7876780033111572 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:10:02.616495
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.19048452377319336 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:10:32.154974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.788593053817749 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:10:42.144219
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aacb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16992712020874023 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:10:52.179100
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7922046184539795 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:11:03.482601
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.21304917335510254 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:11:32.399831
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c56d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7933592796325684 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:11:42.429969
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f35310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1694653034210205 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:11:52.434560
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7939877510070801 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:12:03.129972
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fcd50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18909645080566406 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:12:32.776307
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e96f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8037879467010498 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:12:42.664904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554fe30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16950321197509766 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:12:52.692276
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7928259372711182 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:13:03.862082
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cae90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2179110050201416 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:13:32.918200
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755406f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7912819385528564 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:13:42.876003
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17041802406311035 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:13:52.966838
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7944035530090332 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:14:02.589513
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490d30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18383097648620605 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:14:32.185297
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7918047904968262 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:14:42.246305
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ace90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16899490356445312 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:14:52.154166
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7932536602020264 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:15:03.443324
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2736775875091553 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:15:32.345499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7889857292175293 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:15:42.361407
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16975116729736328 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:15:52.331271
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7894139289855957 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:16:03.027465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5d10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1815786361694336 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:16:32.684308
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7864968776702881 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:16:42.623044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cadd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17025971412658691 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:16:52.597902
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755896d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7934491634368896 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:17:03.865390
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7d70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.23015475273132324 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:17:32.895576
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7908093929290771 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:17:42.768121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ccd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16901063919067383 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:17:52.846294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7867109775543213 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:18:03.476964
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6293470859527588 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:18:33.061829
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.9563546180725098 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:18:44.758390
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556beb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17093443870544434 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:18:53.079197
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7873508930206299 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:19:03.151525
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5519983768463135 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:19:32.381980
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7945759296417236 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:19:42.370333
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16982507705688477 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:19:52.381902
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7938661575317383 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:20:03.013959
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557deb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18572545051574707 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:20:32.662082
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7921764850616455 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:20:42.658479
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16938304901123047 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:20:52.605997
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75efa750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7968478202819824 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:21:03.974464
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.22144222259521484 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:21:32.866555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755866f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7912430763244629 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:21:42.914898
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ede70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17070984840393066 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:21:52.846554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755776d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7944614887237549 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:22:03.545484
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1836698055267334 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:22:33.055128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8033580780029297 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:22:43.055216
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dce70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16919589042663574 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:22:53.036628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7933242321014404 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:23:03.472074
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552db0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.22665715217590332 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:23:32.256593
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7993466854095459 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:23:42.280741
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17089414596557617 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:23:52.328940
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7894585132598877 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:24:03.006416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18941569328308105 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:24:32.569473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7977111339569092 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:24:42.603181
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17367339134216309 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:24:52.616535
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558d750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7930278778076172 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:25:03.843059
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cbe10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.23392915725708008 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:25:32.806071
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558d750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7978053092956543 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:25:42.819423
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754abed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17006421089172363 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:25:52.882436
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7941834926605225 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:26:03.524808
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18525314331054688 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:26:33.133245
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755057d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7938063144683838 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:26:43.179121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17014837265014648 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:26:53.050703
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7889478206634521 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:27:03.288349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.21945428848266602 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:27:32.268080
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7938916683197021 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:27:42.405047
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ee70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17017269134521484 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:27:52.323520
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7977650165557861 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:28:02.916301
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754abcd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18371820449829102 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:28:32.604850
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7923586368560791 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:28:42.597164
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fbd30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1696455478668213 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:28:52.512066
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cadf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7872791290283203 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:29:03.567913
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2628786563873291 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:29:32.728068
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7894411087036133 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:29:42.734683
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548de90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17002177238464355 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:29:52.771847
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7966463565826416 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:30:03.355926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18401217460632324 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:30:32.993294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7970724105834961 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:30:42.997744
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529cd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16961956024169922 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:30:52.970520
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7863500118255615 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:31:03.176243
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ccb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.24005484580993652 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:31:32.293782
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754986f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7916791439056396 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:31:42.174074
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552bcf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1698307991027832 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:31:52.171435
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7900269031524658 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:32:02.869703
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ce70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1844038963317871 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:32:32.389454
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7884879112243652 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:32:42.478683
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17093777656555176 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:32:52.440531
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75573630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7930827140808105 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:33:03.667273
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ee70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.21398186683654785 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:33:32.659504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7919707298278809 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:33:42.781760
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17004728317260742 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:33:52.673378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7943406105041504 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:34:03.384544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bae90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18269705772399902 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:34:32.915321
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x761b0790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7992978096008301 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:34:42.862393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16971421241760254 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:34:52.920522
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7872593402862549 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:35:04.176511
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.24889564514160156 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:35:33.157390
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e46f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7872803211212158 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:35:43.192710
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fa0530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1717076301574707 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:35:53.197378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7921633720397949 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:36:02.842907
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1822223663330078 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:36:32.457635
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7908217906951904 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:36:42.417085
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1708366870880127 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:36:52.384491
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.794550895690918 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:37:03.590865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ae50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.219482421875 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:37:32.650716
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7933290004730225 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:37:42.589043
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7618f770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17042803764343262 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:37:52.689439
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f46f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.787738561630249 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:38:03.394876
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555fdb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18897461891174316 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:38:32.904719
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7953824996948242 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:38:42.905158
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6cd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17004084587097168 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:38:52.909730
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755366f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7927801609039307 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:39:04.157485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ddf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.22319769859313965 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:39:33.111868
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7942469120025635 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:39:43.209962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16996431350708008 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:39:53.131383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x764c4f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7936432361602783 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:40:02.748689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18164372444152832 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:40:32.367165
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.790536642074585 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:40:42.305915
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75527e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17136454582214355 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:40:52.304975
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7984251976013184 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:41:03.350411
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.652822732925415 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:41:33.785224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8505797386169434 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:41:42.526718
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16958832740783691 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:41:52.565998
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7904794216156006 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:42:03.205252
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fae50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.9161338806152344 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:42:32.776658
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7994892597198486 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:42:42.760985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16989827156066895 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:42:52.781845
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7877159118652344 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:43:03.949362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.2336874008178711 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:43:32.993445
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7928826808929443 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:43:42.970992
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16997742652893066 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:43:53.022362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7952563762664795 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:44:02.699531
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492dd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1850721836090088 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:44:32.303170
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7898874282836914 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:44:42.278967
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553be70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1702892780303955 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:44:52.187967
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7946474552154541 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:45:03.499503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553be50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.21909093856811523 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:45:32.433928
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7921097278594971 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:45:42.476760
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17150163650512695 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:45:52.429229
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755447b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7894997596740723 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:46:03.111815
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7547fd90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18451189994812012 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:46:32.608824
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7876355648040771 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:46:42.614025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16957879066467285 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:46:52.614491
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7932140827178955 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:47:04.047368
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.22177362442016602 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:47:32.799044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7890913486480713 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:47:42.754521
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500c50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17150044441223145 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:47:52.834413
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a86f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7913100719451904 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:48:03.489614
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ce90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.9455862045288086 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:48:33.050599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7906186580657959 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:48:43.048443
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bbe10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17128944396972656 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:48:53.084397
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7980067729949951 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:49:03.358682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549cc90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.25623464584350586 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:49:32.315250
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7995645999908447 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:49:42.378402
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ead30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17014455795288086 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:49:52.278946
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.791022539138794 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:50:02.969335
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1843123435974121 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:50:32.489457
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8193962574005127 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:50:42.528666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554de30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1717684268951416 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:50:52.551844
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7901806831359863 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:51:03.693684
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1d70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.23671627044677734 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:51:32.782154
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7902939319610596 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:51:42.790005
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518cf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1700901985168457 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:51:52.778073
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7909843921661377 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:52:03.439766
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.19009685516357422 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:52:33.054617
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7930130958557129 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:52:42.962100
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16947150230407715 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:52:52.983752
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7921125888824463 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:53:03.202469
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.22833728790283203 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:53:32.191565
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76626ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7884671688079834 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:53:42.180008
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.1701068878173828 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:53:52.207969
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7897119522094727 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:54:02.933732
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557bdb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18909502029418945 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:54:32.443981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7961838245391846 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:54:42.400759
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548de90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17342853546142578 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:54:52.467417
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7920503616333008 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:55:03.695186
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75505d10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.25518345832824707 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:55:32.683124
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7966547012329102 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:55:42.800714
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17136120796203613 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:55:52.674416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7916758060455322 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:56:03.344712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553be90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.18139123916625977 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:56:32.850932
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7955024242401123 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:56:42.875818
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.16957855224609375 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:56:52.855701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7886693477630615 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:57:04.323950
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.21816635131835938 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:57:33.081552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7957208156585693 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:57:43.071537
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75527e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.17087388038635254 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:57:53.127627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755676f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7959601879119873 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:59:03.636212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ccf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.22521090507507324 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:59:32.558717
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b578f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7913689613342285 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 03:59:42.548979
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754871d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 03:59:52.486812
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8008208274841309 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:00:03.600544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755819f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:00:32.711300
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7967221736907959 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:00:42.764112
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754deab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:00:52.652441
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7925777435302734 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:01:04.273775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:01:32.867863
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7980546951293945 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:01:43.080941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:01:52.923289
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755786f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8009979724884033 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:02:03.818513
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755129d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:02:33.121251
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.796316385269165 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:02:43.121685
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:02:53.112357
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7905898094177246 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:03:03.953981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:03:32.398658
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d45b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.79117751121521 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:03:42.363592
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755668d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:03:52.276334
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7938425540924072 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:04:03.227119
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:04:32.483223
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7948782444000244 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:04:42.550398
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:04:52.444517
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7891800403594971 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:05:04.236078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:05:32.854810
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755747b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7972948551177979 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:05:42.817757
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75486ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:05:52.700544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7902350425720215 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:06:03.544292
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:06:32.936549
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b76d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8047308921813965 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:06:42.920856
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555fab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:06:52.939869
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550de30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7982449531555176 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:07:03.767414
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:07:32.165837
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d96f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7949695587158203 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:07:42.178823
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:07:52.252511
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7951958179473877 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:08:03.068812
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755868f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:08:32.587795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.796410083770752 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:08:42.598915
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:08:52.456823
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7963979244232178 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:09:03.926501
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f99850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:09:32.651438
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7995929718017578 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:09:42.676135
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:09:52.655756
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7985305786132812 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:10:03.522646
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:10:32.837701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755126d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8017432689666748 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:10:42.841602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:10:52.822103
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558c6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7895748615264893 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:11:04.654268
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a95b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:11:33.062141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7950100898742676 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:11:43.066860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:11:53.006473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.792292594909668 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:12:02.834301
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:12:32.201177
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.793349027633667 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:12:42.179713
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:12:52.194112
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b36d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7976102828979492 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:13:04.118627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:13:32.461393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7913360595703125 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:13:42.372818
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755565d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:13:52.453132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755046f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7902302742004395 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:14:03.480167
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:14:32.681992
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7912487983703613 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:14:42.681989
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:14:52.682300
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755316f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.794654130935669 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:15:04.580859
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:15:32.919780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8546624183654785 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:15:43.034141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:15:52.920736
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7943160533905029 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:16:03.948555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:16:33.149968
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7939636707305908 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:16:43.144380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:16:53.153393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a55b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8037624359130859 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:17:03.601108
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:17:32.389834
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755146f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7892389297485352 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:17:42.323005
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:17:52.403503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7963576316833496 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:18:03.373358
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:18:32.606830
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7962818145751953 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:18:42.708800
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:18:52.566679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7965035438537598 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:19:04.163200
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:19:32.784537
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7936015129089355 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:19:42.864402
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:19:52.848981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7948994636535645 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:20:03.856528
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755699f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:20:33.078118
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8031494617462158 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:20:43.088930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:20:53.081695
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7907626628875732 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:21:03.553475
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755259f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:21:32.306264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7946105003356934 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:21:42.411690
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:21:52.279292
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7922804355621338 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:22:03.134865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755709f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:22:32.483726
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7901706695556641 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:22:42.469250
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:22:52.587331
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8004436492919922 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:23:04.131366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755669d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:23:32.929158
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7922766208648682 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:23:42.883610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:23:52.796738
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755906b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7900547981262207 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:24:03.724572
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:24:33.025520
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755197b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7971384525299072 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:24:43.022078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:24:53.015586
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7922821044921875 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:25:03.223804
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:25:32.388546
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7900717258453369 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:25:42.308540
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:25:52.194864
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7901456356048584 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:26:03.233653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:26:32.423259
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7979919910430908 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:26:42.564412
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:26:52.396727
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.792278528213501 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:27:04.116520
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:27:32.710789
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d26b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7922372817993164 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:27:42.654320
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:27:52.650516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7900378704071045 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:28:03.584793
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:28:32.882520
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.9301691055297852 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:28:42.903056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:28:52.781584
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.794135332107544 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:29:04.123791
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:29:32.980595
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.831214189529419 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:29:42.973666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:29:53.030175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7953693866729736 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:30:02.923990
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:30:32.285551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7918734550476074 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:30:42.294983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:30:52.266236
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.794407844543457 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:31:03.498623
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:31:32.518464
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e77d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7955834865570068 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:31:42.490386
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f36990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:31:52.553259
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7975876331329346 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:32:03.447454
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:32:32.827557
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7947275638580322 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:32:42.863161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:32:52.776316
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.790553092956543 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:33:04.221262
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:33:33.018699
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7906301021575928 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:33:43.040527
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:33:53.025015
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8005013465881348 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:34:02.879606
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:34:32.241437
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7924098968505859 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:34:42.276840
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:34:52.218448
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.794548749923706 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:35:03.818577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:35:32.403200
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7925872802734375 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:35:42.467638
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:35:52.483867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7968394756317139 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:36:03.310708
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:36:32.688379
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755305b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7902147769927979 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:36:42.735151
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:36:52.712244
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7971000671386719 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:37:04.017136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:37:32.937190
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755656d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7974176406860352 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:37:42.928025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:37:52.939955
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558c6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7943916320800781 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:38:02.705902
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fda90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:38:32.165975
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7934141159057617 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:38:42.307760
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:38:52.174301
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755226b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7956013679504395 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:39:03.669181
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755868f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:39:32.398348
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7656afb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7959504127502441 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:39:42.326965
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:39:52.491081
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755216b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.796090841293335 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:40:03.367155
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755459f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:40:32.684156
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7933363914489746 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:40:42.765472
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:40:52.812873
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fa1650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7930276393890381 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:41:04.483514
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755025d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:41:33.170898
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8032596111297607 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:41:43.050106
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:41:53.151248
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7929694652557373 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:42:02.977725
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:42:32.379944
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7931487560272217 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:42:42.364657
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:42:52.340752
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755626f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7930665016174316 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:43:04.047342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:43:32.572862
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7978112697601318 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:43:42.714511
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755719d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:43:52.559516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7933320999145508 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:44:03.441309
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:44:32.934627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7983372211456299 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:44:42.795503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:44:52.801420
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755667b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.791038990020752 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:45:04.260783
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:45:33.026736
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8000726699829102 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:45:43.051233
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:45:53.037382
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755906b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7956538200378418 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:46:02.826204
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a31f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:46:32.239199
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755446d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7917110919952393 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:46:42.248452
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:46:52.255438
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7932686805725098 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:47:03.637380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:47:32.477360
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754986f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7955946922302246 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:47:42.555807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:47:52.483746
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755186d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7909035682678223 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:48:03.434261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:48:32.763225
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7909116744995117 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:48:42.755669
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754daa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:48:52.709371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755557f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7935128211975098 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:49:04.345146
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:49:33.055324
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8100841045379639 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:49:42.919353
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:49:52.949627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7932138442993164 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:50:02.857446
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:50:32.164276
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7959465980529785 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:50:42.198214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:50:52.197637
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7923555374145508 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:51:03.671139
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:51:32.433569
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d3570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8009099960327148 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:51:42.430278
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:51:52.431951
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7906203269958496 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:52:03.310448
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:52:32.710514
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7930557727813721 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:52:42.783797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:52:52.675460
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7933022975921631 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:53:04.239791
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:53:32.895106
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8024430274963379 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:53:42.871112
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755689d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:53:52.968497
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7938933372497559 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:54:02.836296
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:54:32.179290
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7929391860961914 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:54:42.206268
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:54:52.143075
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7933859825134277 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:55:03.722660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:55:32.439458
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7974941730499268 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:55:42.419216
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:55:52.464844
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7913260459899902 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:56:03.348875
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:56:32.733602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558b550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7950849533081055 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:56:42.668036
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:56:52.724607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.793771505355835 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:57:04.296833
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:57:33.011939
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e27d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7948958873748779 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:57:43.022999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:57:53.077977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7980892658233643 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:59:03.971100
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:59:32.515770
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755746d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7928740978240967 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 04:59:42.516513
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 04:59:52.495669
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7970395088195801 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:00:03.356058
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:00:32.703560
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75588770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7915043830871582 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:00:42.702558
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:00:52.757994
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e05d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7909042835235596 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:01:04.382654
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:01:33.066145
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.9402196407318115 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:01:43.025229
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755639f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:01:52.966114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e46f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.796314001083374 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:02:02.902018
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:02:32.177384
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7616a7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7965884208679199 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:02:42.249066
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755398f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:02:52.146676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7972722053527832 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:03:03.986386
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75527a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:03:32.463009
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755526d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7940683364868164 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:03:42.392720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:03:52.357107
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8028905391693115 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:04:03.213089
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:04:32.590269
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e16f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7970833778381348 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:04:42.689833
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f0210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:04:52.666594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7961535453796387 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:05:04.425909
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754899b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:05:32.950799
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8004238605499268 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:05:42.915559
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:05:52.927453
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a25d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7933645248413086 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:06:03.961995
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f395f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:06:33.173513
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7918100357055664 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:06:43.165699
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7650efb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:06:53.168602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75485df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.793858528137207 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:07:03.881988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:07:32.353626
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7952744960784912 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:07:42.426609
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:07:52.379858
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7921454906463623 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:08:03.214616
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:08:32.569425
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75bbc850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7954196929931641 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:08:42.643049
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:08:52.577359
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7937111854553223 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:09:04.076210
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:09:32.849894
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7988474369049072 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:09:42.791086
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:09:52.924409
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8016159534454346 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:10:03.773471
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:10:33.162851
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7994375228881836 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:10:43.258350
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:10:53.236452
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7911703586578369 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:11:04.092072
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bfa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:11:32.457776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558c750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7927494049072266 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:11:42.501203
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:11:52.429341
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7908577919006348 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:12:03.175042
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:12:32.629487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8030080795288086 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:12:42.747069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:12:52.660843
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7933802604675293 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:13:04.097929
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755789f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:13:33.023758
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8081486225128174 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:13:42.919796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:13:52.959284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8021931648254395 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:14:02.726555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755088b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:14:32.208127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8017685413360596 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:14:42.296127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:14:52.228959
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755896d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8026909828186035 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:15:03.804285
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:15:32.430885
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7935519218444824 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:15:42.503943
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:15:52.489852
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8024401664733887 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:16:03.312706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:16:32.772461
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7988169193267822 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:16:42.780699
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:16:52.707744
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755876d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7936356067657471 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:17:04.195969
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ba90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:17:33.069763
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8037407398223877 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:17:43.046390
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:17:52.956807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755026d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7936191558837891 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:18:02.778809
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:18:32.228903
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7955899238586426 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:18:42.169085
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x759e4c90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:18:52.206386
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7917313575744629 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:19:03.648533
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:19:32.414505
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b55f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.797461748123169 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:19:42.414081
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755198f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:19:52.440517
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755196d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7971744537353516 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:20:03.389441
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:20:32.661216
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755685b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7968885898590088 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:20:42.753349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557da70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:20:52.652498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8027248382568359 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:21:04.408311
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:21:32.931398
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8028316497802734 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:21:42.920491
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:21:52.883257
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7910430431365967 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:22:03.752926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:22:33.132544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755825d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7986931800842285 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:22:43.215971
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:22:53.111650
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.793222188949585 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:23:03.644660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:23:32.306555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75e599b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7986624240875244 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:23:42.464101
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755259d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:23:52.414291
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7933197021484375 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:24:03.293959
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:24:32.702732
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.797435998916626 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:24:42.673755
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:24:52.682103
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7941131591796875 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:25:04.545336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:25:32.959460
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f5550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7977828979492188 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:25:42.905974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:25:52.946590
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a57d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7983291149139404 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:26:02.799903
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:26:32.211588
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.802297830581665 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:26:42.190676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:26:52.193801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7965254783630371 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:27:03.780460
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:27:32.363631
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755596f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7976975440979004 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:27:42.481773
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:27:52.422584
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558d690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7975592613220215 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:28:03.291725
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:28:32.744279
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ae750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7974002361297607 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:28:42.627635
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7619e790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:28:52.636149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7920703887939453 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:29:04.016586
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:29:32.820689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7972631454467773 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:29:42.854987
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:29:52.839447
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7967512607574463 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:30:03.887711
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:30:33.047767
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7982556819915771 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:30:43.056694
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:30:53.008430
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7987239360809326 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:31:03.818836
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:31:32.234388
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7931349277496338 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:31:42.249674
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:31:52.190419
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7947547435760498 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:32:02.995582
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:32:32.446794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755136d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7987804412841797 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:32:42.403983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552f8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:32:52.429751
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75588770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.796553373336792 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:33:03.823885
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:33:32.642894
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d3750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7947158813476562 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:33:42.691118
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:33:52.604728
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7945327758789062 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:34:03.474698
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754caa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:34:32.814244
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7922976016998291 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:34:42.836368
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755469b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:34:52.874598
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7979445457458496 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:35:04.687499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:35:33.117566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7976436614990234 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:35:43.175220
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:35:53.066198
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7992100715637207 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:36:02.793115
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:36:32.289534
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.795729398727417 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:36:42.301030
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:36:52.257079
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7913994789123535 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:37:03.821867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:37:32.473754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7975354194641113 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:37:42.501457
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:37:52.535919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755447d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7981507778167725 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:38:03.324753
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:38:32.769946
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.796011209487915 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:38:42.712041
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:38:52.802045
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f9d6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7951149940490723 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:39:04.392493
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:39:33.001575
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7995185852050781 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:39:43.084819
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755338d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:39:53.027193
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7956397533416748 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:40:02.905490
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:40:32.212899
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d26b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7947752475738525 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:40:42.212994
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:40:52.209966
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8018450736999512 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:41:03.493905
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:41:32.399807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7952775955200195 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:41:42.434542
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755685f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755685f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755685f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:41:52.421747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.795712947845459 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:42:03.362858
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:42:32.642966
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.483370304107666 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:42:42.653927
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:42:52.640700
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7977545261383057 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:43:04.067826
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:43:32.858760
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7984740734100342 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:43:42.844293
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755289b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755289b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755289b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:43:52.839042
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ae710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7948684692382812 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:44:03.899238
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75563a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:44:33.089396
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8009717464447021 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:44:43.096689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:44:53.081658
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7933676242828369 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:45:03.661180
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:45:32.301166
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7922632694244385 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:45:42.298458
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:45:52.350920
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755285f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7918398380279541 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:46:03.185304
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:46:32.545771
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7997913360595703 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:46:42.505948
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:46:52.529304
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7946686744689941 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:47:04.015568
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:47:32.706610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b05b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7923998832702637 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:47:42.822684
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:47:52.779607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7992911338806152 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:48:03.689038
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:48:32.961297
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755755d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8028364181518555 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:48:42.961521
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:48:52.916055
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755066f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7966423034667969 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:49:04.679182
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dd990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:49:33.110467
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7991509437561035 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:49:43.133455
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75b75830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b75830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b75830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:49:53.185648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755796f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7982418537139893 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:50:03.020037
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75545a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:50:32.388468
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7937889099121094 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:50:42.468367
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75567a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:50:52.402371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a06b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7920963764190674 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:51:04.020972
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75545970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:51:32.647674
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7922005653381348 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:51:42.770846
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:51:52.757762
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7950105667114258 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:52:03.500577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754db8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:52:32.972400
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8042809963226318 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:52:43.015329
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:52:52.974455
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7968823909759521 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:53:03.345420
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ba9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:53:32.194270
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7964236736297607 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:53:42.215057
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:53:52.226089
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8039336204528809 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:54:03.141168
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75536a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:54:32.450277
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755796f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7986509799957275 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:54:42.461323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bf9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:54:52.463284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.795006513595581 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:55:04.186417
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:55:32.730975
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7965803146362305 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:55:42.710801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75499a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:55:52.664730
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7944126129150391 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:56:03.474160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:56:32.916850
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7981007099151611 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:56:42.852678
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75525190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:56:52.832720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7953405380249023 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:57:04.525089
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754989b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754989b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754989b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:57:33.160649
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8009634017944336 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:57:43.167641
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75537a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:57:53.016405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.794614315032959 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:59:03.758992
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552d930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:59:32.490962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7945427894592285 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 05:59:42.589240
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 05:59:52.443613
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7970116138458252 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:00:03.524931
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:00:32.679075
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558b750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8005316257476807 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:00:42.704984
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:00:52.688422
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7962937355041504 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:01:04.410012
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75577930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:01:32.969834
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.798499345779419 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:01:42.962566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755149b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755149b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755149b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:01:52.915712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755005f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7931702136993408 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:02:03.852793
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:02:33.169969
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755087d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7998225688934326 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:02:43.137418
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:02:53.226162
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.796926736831665 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:03:04.015160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75491ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75491ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75491ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:03:32.577384
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c37d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7987926006317139 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:03:42.489558
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552dad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552dad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552dad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:03:52.539615
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7951703071594238 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:04:03.547863
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:04:32.740542
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755156f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7981536388397217 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:04:42.813101
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:04:52.714028
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755505d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7948057651519775 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:05:03.792569
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755039d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755039d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755039d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:05:32.958721
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7974319458007812 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:05:42.935698
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d4af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:05:52.931877
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f07b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7949285507202148 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:06:03.896891
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:06:33.158986
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7961850166320801 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:06:43.111126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:06:53.157572
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755786d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7929120063781738 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:07:03.761096
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754af970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:07:32.518623
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8033838272094727 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:07:43.392669
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:07:52.403405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8041191101074219 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:08:03.415702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:08:32.628288
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7956302165985107 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:08:42.791019
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754faa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754faa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754faa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:08:52.652934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7977085113525391 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:09:04.172237
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755298f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755298f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755298f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:09:32.849283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75591750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7987461090087891 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:09:42.988579
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:09:52.795338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7946341037750244 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:10:03.671986
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75521a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:10:32.990934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8043596744537354 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:10:43.009269
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:10:53.003009
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8035531044006348 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:11:03.215040
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755389d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755389d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755389d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:11:32.291248
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8033242225646973 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:11:42.266729
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:11:52.218643
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7954847812652588 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:12:03.087809
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75555a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:12:32.449130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.798408031463623 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:12:42.468382
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755029d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755029d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755029d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:12:52.438123
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7994487285614014 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:13:04.081065
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:13:32.701425
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8032279014587402 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:13:42.716671
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75579a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:13:52.689742
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f45950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8001210689544678 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:14:03.626787
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:14:32.928573
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7941224575042725 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:14:42.911537
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:14:52.903867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b05d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7974448204040527 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:15:04.322552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:15:33.098312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754926d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8003451824188232 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:15:43.110561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:15:53.101034
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c16b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8028104305267334 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:16:03.028405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75568a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:16:32.411570
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755477d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7993369102478027 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:16:42.404117
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c98f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c98f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c98f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:16:52.294869
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755486b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7996783256530762 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:17:03.984121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755839d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755839d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755839d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:17:32.539128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755426f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7961323261260986 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:17:42.564443
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b3a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:17:52.668247
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7989466190338135 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:18:03.413121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:18:32.913337
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7937495708465576 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:18:42.906098
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:18:52.918768
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558e7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.793067216873169 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:19:04.536988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dd970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:19:33.120939
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7977344989776611 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:19:43.194657
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:19:53.129542
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7989063262939453 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:20:03.051541
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f1a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f1a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f1a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:20:32.363136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755416d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8042268753051758 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:20:42.428042
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75541a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:20:52.404417
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8037838935852051 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:21:03.825036
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75567950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:21:32.688611
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.794964075088501 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:21:42.650962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755301f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755301f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755301f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:21:52.663427
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7927722930908203 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:22:03.594895
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:22:32.915790
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f76f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8088603019714355 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:22:43.013823
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75512a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:22:52.892716
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7930605411529541 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:23:04.477794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75565ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:23:33.083076
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8135585784912109 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:23:43.147805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:23:53.137111
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7947537899017334 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:24:03.227867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:24:32.472676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7972583770751953 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:24:42.321043
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:24:52.332033
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7958569526672363 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:25:03.954718
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755809f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755809f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755809f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:25:32.586054
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7958037853240967 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:25:42.642126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75498ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:25:52.600381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8041913509368896 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:26:03.491608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75566990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:26:32.856970
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7965154647827148 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:26:42.885525
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:26:52.804478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7941956520080566 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:27:04.283601
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755489f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755489f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755489f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:27:33.054781
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8043034076690674 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:27:43.096731
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75551a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:27:53.951298
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7936904430389404 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:28:03.803225
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75508a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:28:33.109019
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f26f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7997620105743408 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:28:43.154732
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755799b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755799b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755799b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:28:53.153211
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755727d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7953963279724121 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:29:03.985651
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75543a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:29:32.417099
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8014917373657227 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:29:42.410114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fa9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:29:52.379338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755906f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7942500114440918 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:30:03.317847
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:30:32.559255
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.796255350112915 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:30:42.603214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:30:52.583920
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8013558387756348 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:31:04.166663
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bda70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bda70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bda70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:31:32.855268
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.802959680557251 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:31:42.854075
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:31:52.789027
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7957479953765869 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:32:03.687303
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ada50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ada50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ada50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:32:33.028283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7972986698150635 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:32:43.077819
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75551990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:32:53.021028
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7992565631866455 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:33:03.623259
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75513a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:33:32.438067
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7974016666412354 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:33:42.278983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a5a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:33:52.452884
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8049507141113281 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:34:03.410151
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cd990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:34:32.706543
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7976102828979492 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:34:42.666885
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x764a7f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x764a7f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x764a7f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:34:52.717999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7998180389404297 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:35:04.515305
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:35:33.010387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.933774471282959 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:35:43.107992
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c8910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:35:53.199578
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7959213256835938 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:36:03.086400
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755589f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755589f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755589f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:36:32.505479
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7980453968048096 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:36:42.502653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:36:52.465586
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8236804008483887 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:37:04.107705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75523a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:37:32.708225
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7963707447052002 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:37:42.748115
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75566a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:37:52.637839
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7933228015899658 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:38:03.559161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:38:32.962602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e46b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7991683483123779 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:38:42.903856
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755038b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755038b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755038b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:38:52.902558
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7963783740997314 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:39:04.527926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c1910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:39:33.135131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755116b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8046402931213379 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:39:43.098787
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:39:53.170619
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7958157062530518 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:40:03.032694
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b6b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:40:32.365741
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754937d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7995309829711914 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:40:42.528778
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75553a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:40:52.445401
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755507b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7962231636047363 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:41:03.912914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553db30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553db30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553db30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:41:32.662941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7962472438812256 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:41:42.677780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dcaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dcaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dcaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:41:52.637423
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c06f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7947015762329102 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:42:03.501204
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:42:32.977383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7953524589538574 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:42:42.807541
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755009d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755009d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755009d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:42:52.852018
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.794126033782959 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:43:04.458525
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:43:33.086523
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.80906081199646 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:43:43.067154
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553dad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553dad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553dad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:43:53.061812
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8008830547332764 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:44:03.050314
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:44:32.296197
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7963964939117432 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:44:42.297097
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75557a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:44:52.237052
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c76f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8005669116973877 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:45:03.744362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:45:32.436490
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7935268878936768 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:45:42.465419
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:45:52.496981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7988524436950684 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:46:03.256576
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75509a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:46:32.722170
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ebdd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.800464391708374 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:46:42.702712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d4ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:46:52.683970
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755655d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8053905963897705 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:47:04.491119
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75485a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75485a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75485a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:47:32.952997
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8002502918243408 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:47:42.946892
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:47:52.903023
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7933135032653809 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:48:03.949509
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:48:33.116452
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8092291355133057 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:48:43.098594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75534a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:48:53.189090
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8006668090820312 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:49:03.799732
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:49:32.453584
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.798363447189331 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:49:42.520066
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ce970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:49:52.449355
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755197b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7957758903503418 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:50:03.502454
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75496a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:50:32.655603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755607b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7958428859710693 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:50:42.705270
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cfa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cfa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cfa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:50:52.599879
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7956609725952148 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:51:04.104175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:51:32.924403
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7956886291503906 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:51:42.862127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:51:52.882873
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7948729991912842 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:52:03.930872
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:52:33.182603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7995967864990234 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:52:43.109517
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75554a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:52:53.103900
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755486f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7983760833740234 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:53:03.630154
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b6970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:53:32.385268
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7985556125640869 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:53:42.400566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754db9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:53:52.385432
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8016362190246582 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:54:03.241789
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75fb44b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fb44b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fb44b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:54:32.608044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7997293472290039 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:54:42.666078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75524910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:54:52.564361
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7941701412200928 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:55:04.178355
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:55:32.799636
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75efbe70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8003287315368652 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:55:42.797477
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:55:52.776187
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755685b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7944042682647705 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:56:03.782374
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:56:32.996703
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8001725673675537 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:56:43.076934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:56:52.979338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7961676120758057 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:57:03.377981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:57:32.237516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7969951629638672 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:57:42.210136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755189f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755189f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755189f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:57:52.174250
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75588730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7940645217895508 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:59:04.104446
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75564a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:59:33.164434
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8122448921203613 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 06:59:43.101650
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75581a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 06:59:52.993466
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.798471212387085 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:00:02.925378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552a630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:00:32.168351
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d56b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7992861270904541 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:00:42.207383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75556a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:00:52.179577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e36f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7958018779754639 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:01:03.705538
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75542990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:01:32.488451
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7964801788330078 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:01:42.463367
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75508a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:01:52.377385
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755036f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7975931167602539 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:02:03.317834
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:02:32.609064
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755156f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.801262378692627 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:02:42.649651
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755669d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755669d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755669d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:02:52.577363
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8007237911224365 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:03:03.917152
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:03:33.007714
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.806016206741333 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:03:42.888449
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:03:52.778024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8009645938873291 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:04:03.645906
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d65f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d65f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d65f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:04:32.966014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.9339940547943115 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:04:42.997356
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75fc7730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fc7730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fc7730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:04:53.019504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755016f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.799614429473877 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:05:03.395812
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75531ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:05:32.360346
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8033900260925293 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:05:42.262529
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:05:52.367621
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7974557876586914 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:06:03.367811
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:06:32.577656
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8011474609375 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:06:42.553079
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:06:52.532074
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75585710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8003048896789551 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:07:04.405478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a3910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:07:32.833407
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.80145263671875 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:07:42.729123
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:07:52.745141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755906d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7997126579284668 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:08:03.648038
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:08:33.029961
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755787b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7982227802276611 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:08:43.124103
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755219b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755219b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755219b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:08:52.948485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7984614372253418 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:09:03.342770
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:09:32.152758
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.802492618560791 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:09:42.214171
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:09:52.161407
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d36d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7960786819458008 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:10:03.105074
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75578a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:10:32.456405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b76f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.79752516746521 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:10:42.354776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bb210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:10:52.399323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8012537956237793 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:11:04.076230
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550f5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:11:32.547213
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b36b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7970669269561768 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:11:42.692920
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75489a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:11:52.586339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8002030849456787 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:12:03.383548
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ffa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ffa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ffa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:12:32.759795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.79398512840271 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:12:42.795213
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cc1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:12:52.852091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7995579242706299 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:13:04.569394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ada70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ada70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ada70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:13:33.087100
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8091108798980713 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:13:43.109057
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:13:53.070333
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755616d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8034260272979736 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:14:02.939089
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:14:32.295723
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8018982410430908 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:14:42.249717
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755288f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755288f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755288f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:14:52.273307
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7989943027496338 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:15:03.943232
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:15:32.550968
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cae50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7963578701019287 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:15:42.587635
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:15:52.484196
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7976160049438477 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:16:03.433659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75551a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:16:32.771095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c07d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7961611747741699 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:16:42.705934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:16:52.710432
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7974576950073242 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:17:04.090798
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557aaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557aaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557aaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:17:32.915170
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76198750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7970006465911865 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:17:42.967893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549dab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549dab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549dab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:17:52.955464
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8070864677429199 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:18:02.891333
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:18:32.136077
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.797203779220581 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:18:42.216662
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754af910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:18:52.278885
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755287b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7984204292297363 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:19:03.795098
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75545af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:19:32.659511
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7999825477600098 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:19:42.506553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:19:52.494222
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754966d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8020761013031006 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:20:03.297030
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755758f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755758f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755758f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:20:32.680202
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8004159927368164 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:20:42.716211
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:20:52.798575
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e05d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7949931621551514 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:21:04.517201
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755139b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755139b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755139b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:21:33.032280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f87b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8050122261047363 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:21:43.075044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75490a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:21:53.007670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75505790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8009800910949707 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:22:02.994249
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75fd3530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fd3530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fd3530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:22:32.245676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8024179935455322 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:22:42.374086
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75542af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:22:52.387339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7996361255645752 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:23:04.155208
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755089f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755089f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755089f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:23:32.681223
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.795773983001709 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:23:42.628811
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:23:52.606126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7983882427215576 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:24:03.582017
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:24:32.787100
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.796668529510498 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:24:42.860283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75f42390>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f42390>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f42390>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:24:52.816059
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7969970703125 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:25:04.592741
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75487a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:25:33.042122
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8123273849487305 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:25:43.247948
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755859d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755859d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755859d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:25:53.061737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8029603958129883 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:26:02.850672
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75494a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:26:32.250357
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f36f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8015830516815186 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:26:42.295359
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:26:52.240017
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f5550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8011541366577148 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:27:04.042518
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754db9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:27:32.513039
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754916f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7976436614990234 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:27:42.482248
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75572a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:27:52.547649
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755517d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7977428436279297 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:28:03.430182
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75532970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:28:32.805067
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75591730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8012447357177734 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:28:42.743896
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:28:52.763867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755446f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7951195240020752 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:29:04.581406
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:29:33.161664
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8011138439178467 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:29:42.989277
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x764a2f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x764a2f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x764a2f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:29:52.996010
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7965092658996582 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:30:02.877657
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 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 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,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 dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:30:32.202342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8010439872741699 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:30:42.195754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:30:52.193471
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8020617961883545 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:31:03.790993
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a3930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:31:32.377208
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8056495189666748 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:31:42.409027
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75521910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:31:52.398423
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7979512214660645 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:32:03.270595
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:32:32.592394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f66d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8009891510009766 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:32:42.660465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:32:52.611121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75588550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7954754829406738 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:33:04.245764
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755499b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755499b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755499b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:33:32.852766
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7972390651702881 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:33:42.900850
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:33:52.911314
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755325d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7987122535705566 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:34:03.709916
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755279b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755279b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755279b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:34:33.131572
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c56d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8111050128936768 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:34:43.121830
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:34:53.081052
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8002231121063232 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:35:03.818775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:35:32.280273
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7979230880737305 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:35:42.316270
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:35:52.322221
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7972631454467773 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:36:03.248735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755489f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755489f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755489f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:36:32.540859
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7953591346740723 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:36:42.525215
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:36:52.497468
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7974231243133545 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:37:04.109950
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:37:32.791240
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8082559108734131 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:37:42.735726
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755329d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755329d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755329d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:37:52.714542
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7968392372131348 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:38:03.588077
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cc9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:38:32.973209
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8026478290557861 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:38:42.967830
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755239b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755239b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755239b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:38:52.922717
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7967593669891357 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:39:04.299237
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:39:33.158124
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76191770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8091108798980713 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:39:43.196119
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75577a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:39:53.157726
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8059391975402832 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:40:02.928792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x76496ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76496ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76496ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:40:32.348994
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755315d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8018665313720703 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:40:43.366066
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75530930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:40:52.392406
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7982602119445801 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:41:03.765094
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75542a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:41:32.660853
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7982981204986572 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:41:42.656858
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75566a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:41:52.642316
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8024663925170898 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:42:03.583934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:42:32.853706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.799379825592041 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:42:42.823981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:42:52.842453
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7990093231201172 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:43:04.304418
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:43:33.173556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c46f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7972595691680908 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:43:43.185582
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ffa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ffa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ffa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:43:53.013652
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7970633506774902 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:44:02.999033
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75488a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75488a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75488a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:44:32.270985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.805192232131958 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:44:42.201462
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:44:52.226265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7960081100463867 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:45:03.891455
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:45:32.456970
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8032021522521973 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:45:42.470896
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a7ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:45:52.482978
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7979469299316406 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:46:03.269140
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552f8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552f8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552f8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:46:32.677503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8012831211090088 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:46:42.747366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:46:52.753227
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75514730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7959253787994385 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:47:04.174760
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75507190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:47:33.066453
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8122677803039551 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:47:43.119504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755658f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755658f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755658f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:47:53.007047
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7999398708343506 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:48:02.973787
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:48:32.210774
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8037922382354736 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:48:42.236805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:48:52.174471
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b76f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8001751899719238 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:49:03.764403
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755399f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755399f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755399f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:49:32.512182
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8010447025299072 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:49:42.420807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:49:52.504843
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8032314777374268 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:50:03.440044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:50:32.716475
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.79880690574646 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:50:42.732631
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:50:52.698088
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7987995147705078 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:51:04.395159
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75549a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:51:32.926853
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f47d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8030266761779785 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:51:42.982451
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:51:52.899597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8028619289398193 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:52:03.585249
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:52:33.149788
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8096330165863037 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:52:43.105729
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ea9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:52:53.168278
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8009223937988281 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:53:03.726946
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75567910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:53:32.356192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7982141971588135 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:53:42.554641
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75575a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:53:52.475920
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d47b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.798417329788208 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:54:03.340547
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e8a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:54:32.707567
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7994329929351807 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:54:42.812154
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75557a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:54:52.701820
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8006446361541748 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:55:04.338048
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:55:33.102811
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8003597259521484 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:55:43.035334
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75525a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:55:52.956435
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75588750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7996537685394287 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:56:02.855166
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x764a1f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x764a1f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x764a1f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:56:32.200207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8029017448425293 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:56:42.215744
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:56:52.190552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f86f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7972838878631592 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:57:03.849972
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75559ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:57:32.514963
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7982497215270996 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:57:42.386854
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fb8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:57:52.434010
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7982847690582275 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:59:04.084331
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75506930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:59:32.956211
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8023207187652588 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 07:59:43.035786
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553c8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 07:59:53.000058
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7991724014282227 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:00:02.953300
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75582ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:00:32.220281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755036b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7993240356445312 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:00:42.190410
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75576a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:00:52.191190
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8004732131958008 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:01:03.643481
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:01:32.550828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8064651489257812 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:01:42.353316
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bbab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bbab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bbab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:01:52.361790
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.803396463394165 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:02:03.230167
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75561a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:02:32.567879
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755026f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7986762523651123 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:02:42.617835
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:02:52.603558
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8053169250488281 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:03:04.325981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:03:32.842213
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8070294857025146 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:03:42.892105
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f5a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f5a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f5a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:03:52.860865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8040215969085693 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:04:03.766168
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b8ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:04:33.075443
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8030886650085449 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:04:43.099893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:04:53.105051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7977070808410645 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:05:03.714652
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75487af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:05:32.301883
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8025381565093994 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:05:42.324706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:05:52.308097
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755476d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7994163036346436 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:06:03.163213
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:06:32.545413
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554de50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.9608209133148193 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:06:42.537718
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c7ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:06:52.621643
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7986328601837158 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:07:04.034393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75490a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:07:32.817044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7994914054870605 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:07:43.006473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:07:52.937561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8024659156799316 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:08:02.813860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:08:32.260634
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7999684810638428 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:08:42.201072
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:08:52.161755
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75515770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8009128570556641 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:09:03.525224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:09:32.402310
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7957425117492676 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:09:42.357573
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e6ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:09:52.369792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d85f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8028323650360107 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:10:03.163659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:10:32.556610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755366f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8043467998504639 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:10:42.726850
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75528990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:10:52.583025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8031697273254395 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:11:04.341722
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75574910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:11:32.896696
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755425b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7990307807922363 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:11:42.917566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75536a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:11:52.869695
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7997736930847168 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:12:03.817281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:12:33.126812
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8020346164703369 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:12:43.103572
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ac990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:12:53.143096
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8024115562438965 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:13:03.628494
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75560a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:13:32.370110
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8023223876953125 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:13:42.449913
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:13:52.380119
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8030040264129639 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:14:03.191816
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ea9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:14:32.676513
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7971601486206055 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:14:42.719545
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754879b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754879b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754879b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:14:52.658947
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7988290786743164 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:15:04.083020
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75505910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75505910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75505910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:15:32.895589
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558b6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8041684627532959 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:15:42.880654
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:15:52.894393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a47d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8024899959564209 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:16:03.800162
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755268d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755268d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755268d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:16:33.168685
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.800708532333374 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:16:43.120501
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:16:53.106318
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8036501407623291 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:17:04.033107
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75508a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:17:32.467571
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755856d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8020827770233154 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:17:42.506368
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:17:52.305870
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7966136932373047 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:18:03.156201
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:18:32.505460
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8023762702941895 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:18:42.550104
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755579f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755579f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755579f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:18:52.487929
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c46f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7965497970581055 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:19:04.362625
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75539a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:19:32.750316
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754976f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8000731468200684 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:19:42.708801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755699f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755699f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755699f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:19:52.789941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8008036613464355 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:20:03.806720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75490950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:20:33.041892
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8041894435882568 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:20:43.087596
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:20:53.007330
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7983798980712891 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:21:03.660138
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:21:32.262018
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8001461029052734 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:21:42.296545
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:21:52.243519
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8063507080078125 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:22:03.232519
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75504a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:22:32.485498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8022165298461914 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:22:42.433746
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:22:52.467252
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755077b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.807647705078125 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:23:04.023724
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75574a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:23:32.682033
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755335f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8042383193969727 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:23:42.751967
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755799b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755799b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755799b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:23:52.752650
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755316f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8029220104217529 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:24:03.570834
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:24:33.034577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755176b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8070764541625977 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:24:42.939893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:24:52.973356
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8042912483215332 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:25:03.595824
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eeaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eeaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eeaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:25:32.287558
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7985982894897461 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:25:42.317260
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:25:52.174345
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8079066276550293 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:26:03.036816
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75fb03f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fb03f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fb03f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:26:32.380540
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75590710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8114867210388184 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:26:42.452169
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755158b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755158b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755158b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:26:52.374943
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8027260303497314 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:27:03.420705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 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 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,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 dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:27:32.596853
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8023314476013184 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:27:42.639523
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550fad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550fad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550fad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:27:52.594947
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a56f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.802295446395874 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:28:03.554719
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75517ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:28:32.830481
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755335b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7992618083953857 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:28:42.815307
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fa970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:28:52.826547
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b65d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8033654689788818 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:29:04.734099
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75531ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:29:33.093981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8048665523529053 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:29:43.144886
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:29:53.032356
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d07d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7989468574523926 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:30:02.893135
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e4570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:30:32.219002
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8022663593292236 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:30:42.214159
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:30:52.231974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c95d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8029005527496338 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:31:03.958891
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75519a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:31:32.478848
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755316d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.802905797958374 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:31:42.500027
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75578a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:31:52.438250
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e9790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8048253059387207 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:32:03.324883
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:32:32.643457
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e17d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.9385614395141602 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:32:42.696856
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:32:52.682094
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f6c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8024206161499023 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:33:04.123416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75581970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:33:32.968339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7996079921722412 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:33:42.965294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bf9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:33:54.466137
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8045506477355957 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:34:03.259195
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75fab630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fab630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fab630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:34:32.674523
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8205277919769287 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:34:42.647122
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:34:52.682354
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8019278049468994 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:35:04.447960
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:35:32.859167
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755716b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8074157238006592 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:35:43.016738
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:35:52.918819
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a46d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8075194358825684 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:36:03.714897
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755309d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755309d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755309d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:36:33.099047
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8036117553710938 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:36:43.145195
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:36:53.090321
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7995555400848389 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:37:03.794619
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:37:32.334106
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.800062894821167 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:37:42.440201
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:37:52.302141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8047299385070801 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:38:03.116550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75570250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:38:32.513424
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e96d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8079721927642822 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:38:42.529066
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75571a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:38:52.619498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8051028251647949 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:39:04.080763
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:39:32.867262
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b96b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8037261962890625 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:39:42.952298
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75559a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:39:52.837016
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ee50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8066916465759277 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:40:03.772795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75543a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:40:33.087488
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8061103820800781 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:40:43.148189
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75495a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:40:53.157343
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75a6af70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7965655326843262 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:41:03.675587
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:41:32.446776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755516d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8031723499298096 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:41:42.469792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555da70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555da70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555da70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:41:52.443766
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8053958415985107 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:42:03.185719
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75501a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:42:32.687409
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755397b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.800112247467041 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:42:42.647866
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x765e1ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x765e1ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x765e1ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:42:52.653176
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755516f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8050744533538818 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:43:04.311246
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bfa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bfa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bfa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:43:32.855726
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7987480163574219 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:43:42.877232
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75496ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:43:52.845929
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8052463531494141 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:44:03.754782
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75516a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:44:33.057957
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755717b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.800605058670044 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:44:43.092766
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75526a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:44:53.087485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8047952651977539 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:45:03.692169
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:45:32.301803
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8028316497802734 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:45:42.462602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75530a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:45:52.312300
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8085446357727051 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:46:03.320896
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 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 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,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 dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:46:32.519203
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755085f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7513852119445801 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:46:42.625330
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552ead0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ead0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ead0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:46:52.595219
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7554037570953369 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:47:04.380843
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75545930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:47:32.785064
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7571821212768555 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:47:42.995815
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:47:52.798662
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.758307695388794 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:48:03.724951
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75497a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:48:33.058545
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7538831233978271 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:48:43.034933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75537a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:48:53.091919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7588050365447998 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:49:03.680257
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:49:32.417124
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7596035003662109 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:49:42.292754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754faa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754faa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754faa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:49:52.421918
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7520332336425781 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:50:03.256083
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:50:32.635190
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7536919116973877 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:50:42.648823
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555a190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:50:52.683234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7533941268920898 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:51:04.286258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ef990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:51:32.969151
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7579600811004639 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:51:42.955192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75540a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:51:52.924143
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.765178918838501 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:52:03.742345
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552cad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552cad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552cad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:52:33.264587
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7557382583618164 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:52:43.110944
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755368f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755368f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755368f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:52:53.086749
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7604405879974365 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:53:03.521874
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:53:32.368054
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755866b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7540452480316162 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:53:42.388086
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755409f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755409f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755409f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:53:52.266748
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.751967191696167 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:54:03.087503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75562a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:54:32.480324
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7542464733123779 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:54:42.514055
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:54:52.474046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7593162059783936 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:55:04.133860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754efa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754efa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754efa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:55:32.774591
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7516446113586426 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:55:42.729115
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a41b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a41b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a41b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:55:52.680196
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7600901126861572 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:56:03.426747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:56:32.893407
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f45b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7562992572784424 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:56:42.946052
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75517a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:56:52.890458
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.751502275466919 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:57:04.306461
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75573a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75573a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75573a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:57:33.142067
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7616832256317139 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:57:43.111990
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754afa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754afa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754afa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:57:53.173454
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7556583881378174 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:59:04.060592
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75541910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:59:32.932606
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.751046895980835 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 08:59:43.154213
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75546930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 08:59:52.938374
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7528886795043945 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:00:02.772392
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75540a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:00:32.146410
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e06b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7541952133178711 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:00:42.188544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754caad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754caad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754caad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:00:52.175461
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a77b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7579045295715332 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:01:03.641842
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75507a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:01:32.378410
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d3790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7532970905303955 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:01:42.461307
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:01:52.485228
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7645037174224854 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:02:03.365064
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b9950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:02:32.685733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755427d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7562317848205566 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:02:42.669898
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75547a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:02:52.611858
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7506129741668701 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:03:04.201160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75555a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:03:32.825969
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7630023956298828 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:03:42.842824
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:03:52.983841
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7575364112854004 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:04:02.913124
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ff990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:04:32.196685
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.753572940826416 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:04:42.179467
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75576a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:04:52.165477
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7574069499969482 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:05:03.879232
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755449f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755449f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755449f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:05:32.372677
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.754021167755127 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:05:42.447192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754991b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754991b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754991b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:05:52.395380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7570703029632568 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:06:03.335706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75531a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:06:32.597454
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7643780708312988 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:06:42.632915
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75562990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:06:52.583701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7512524127960205 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:07:04.195506
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:07:32.957057
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755125f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7540748119354248 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:07:42.885676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553cad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553cad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553cad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:07:52.862783
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7579081058502197 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:08:03.764630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:08:33.228609
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75588730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7512743473052979 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:08:43.030793
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754df910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:08:53.094276
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7594542503356934 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:09:03.813071
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:09:32.348651
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7590501308441162 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:09:42.330265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:09:52.313148
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755826f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7586798667907715 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:10:03.242934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fa970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:10:32.534069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7535982131958008 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:10:42.538258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75517a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:10:52.509987
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7543323040008545 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:11:04.396995
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75486a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75486a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75486a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:11:32.754847
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7539529800415039 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:11:42.735760
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:11:52.787803
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c86d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7517342567443848 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:12:03.483292
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75580a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:12:33.075191
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7548434734344482 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:12:43.047013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f3a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:12:53.038369
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7542417049407959 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:13:03.484117
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7660cd90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7660cd90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7660cd90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:13:32.260737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7543153762817383 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:13:42.411658
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:13:52.234175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7547509670257568 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:14:03.017939
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:14:32.420785
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7541706562042236 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:14:42.417426
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:14:52.461807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7580630779266357 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:15:03.561436
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:15:32.725174
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.757605791091919 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:15:42.796315
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75564a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:15:52.705484
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7559466361999512 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:16:03.666864
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755388b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755388b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755388b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:16:33.037364
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7597496509552002 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:16:42.996442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:16:53.027674
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7554664611816406 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:17:03.295415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:17:32.267703
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7548468112945557 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:17:42.292929
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75529ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:17:52.335548
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755036d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7589681148529053 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:18:03.118706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754909f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754909f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754909f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:18:32.519423
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755576b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7618467807769775 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:18:42.460875
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755069b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755069b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755069b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:18:52.593235
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.751776933670044 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:19:04.031744
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:19:32.937315
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75588770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.752511739730835 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:19:42.840161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554b8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:19:52.763270
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7587790489196777 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:20:03.504481
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:20:33.077382
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7530918121337891 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:20:42.988274
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755388b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755388b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755388b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:20:52.955016
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755035b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7545230388641357 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:21:03.635311
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:21:32.200604
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7628223896026611 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:21:42.194845
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755869f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755869f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755869f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:21:52.168706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f36f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7594716548919678 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:22:03.030143
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75497a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:22:32.436488
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7580296993255615 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:22:42.409754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ec1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:22:52.367781
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755896b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7623634338378906 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:23:03.987555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75551a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:23:32.610778
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755725f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7552378177642822 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:23:42.556725
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754889f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754889f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754889f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:23:52.556286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f03550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7528467178344727 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:24:03.505218
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755229b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755229b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755229b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:24:32.798904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8577437400817871 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:24:42.851061
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:24:52.736603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7594122886657715 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:25:05.036772
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:25:33.086165
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7554936408996582 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:25:42.924099
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754faa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754faa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754faa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:25:52.957011
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.755072832107544 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:26:02.903030
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:26:32.189138
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f0730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.752793550491333 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:26:42.153508
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:26:52.164005
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c76d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7596771717071533 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:27:03.672263
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:27:32.514202
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7531423568725586 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:27:42.321313
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:27:52.514829
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7647285461425781 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:28:03.447654
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ba8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:28:32.710236
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7591397762298584 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:28:42.697648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550cab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550cab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550cab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:28:52.781762
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7558739185333252 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:29:04.412043
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aead0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aead0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aead0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:29:32.979481
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755366f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7550549507141113 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:29:42.993930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75570970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:29:52.993460
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7582359313964844 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:30:02.844721
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755359d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755359d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755359d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:30:32.208249
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f75f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7557532787322998 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:30:42.212272
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:30:52.182333
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e56f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7582292556762695 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:31:03.572878
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554da70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554da70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554da70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:31:32.407250
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7598123550415039 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:31:42.361129
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fc990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:31:52.426777
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7635393142700195 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:32:03.230949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75569910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:32:32.701417
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755776d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7554707527160645 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:32:42.638457
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cf9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:32:52.703371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7600891590118408 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:33:04.032067
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75512ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:33:32.991970
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75573770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.759493350982666 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:33:42.998894
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:33:52.909561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755006b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7529232501983643 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:34:03.867303
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556baf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556baf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556baf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:34:33.133930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7564601898193359 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:34:43.176632
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:34:53.171760
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7523469924926758 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:35:04.115777
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75553970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:35:32.362577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d56d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7583887577056885 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:35:42.421950
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:35:52.389533
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7688078880310059 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:36:03.361059
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:36:32.588853
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7541320323944092 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:36:42.613456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75558930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:36:52.671763
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558f570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7596056461334229 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:37:04.263452
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75578a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:37:32.893510
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755407b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7553832530975342 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:37:42.877224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75566a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:37:52.844973
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7558732032775879 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:38:03.918065
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:38:33.027722
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f06d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.753394603729248 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:38:43.123861
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:38:53.087941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7595345973968506 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:39:03.536646
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75f5f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f5f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f5f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:39:32.411161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7584950923919678 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:39:42.420753
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548eaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548eaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548eaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:39:52.333103
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ade50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7675211429595947 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:40:03.217279
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b5ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:40:32.683037
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7576282024383545 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:40:42.615577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f3930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:40:52.562139
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.759692907333374 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:41:03.988275
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75516a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:41:32.909893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.756906270980835 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:41:42.752185
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755859b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755859b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755859b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:41:52.747458
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7522461414337158 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:42:03.575744
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:42:32.929014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7553846836090088 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:42:42.998893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:42:52.942205
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755406b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7575168609619141 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:43:04.746811
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:43:33.172499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7630856037139893 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:43:43.119153
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755049b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755049b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755049b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:43:53.208865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755726b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7589128017425537 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:44:02.987439
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d6ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:44:32.425172
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7575342655181885 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:44:42.455084
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:44:52.426024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7584257125854492 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:45:04.376311
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:45:32.690602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7572450637817383 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:45:42.748544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:45:52.661515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7534599304199219 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:46:03.492069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ca9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:46:32.909038
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755696f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7583484649658203 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:46:43.046698
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755559f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755559f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755559f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:46:52.888413
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558f610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7561697959899902 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:47:04.440981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:47:33.091550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7603428363800049 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:47:43.098306
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:47:53.074192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7643921375274658 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:48:02.985025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:48:32.278637
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7603120803833008 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:48:42.340914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:48:52.281926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755275f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7601866722106934 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:49:04.132712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:49:32.532491
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7590386867523193 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:49:42.560854
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75495a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:49:52.486475
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7607221603393555 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:50:03.256401
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a6b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:50:32.727922
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7540600299835205 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:50:42.812244
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75543a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:50:52.701257
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7644414901733398 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:51:04.243733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a7930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:51:33.032384
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7559399604797363 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:51:42.924596
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:51:52.920651
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75527750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7596080303192139 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:52:03.789277
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75549a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:52:33.142206
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7569575309753418 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:52:43.195416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:52:53.159574
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755706b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7542774677276611 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:53:03.903486
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75543990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:53:32.380443
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7563433647155762 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:53:42.420700
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c5ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:53:52.364135
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7593412399291992 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:54:03.015912
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:54:32.570703
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75589670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7556061744689941 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:54:42.556585
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:54:52.599637
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755617f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7555179595947266 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:55:04.414162
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75510a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:55:32.825462
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a86f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7540290355682373 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:55:42.903316
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755559b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755559b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755559b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:55:52.930364
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7574455738067627 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:56:03.779770
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:56:33.107811
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a27f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.75325608253479 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:56:43.144551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556bad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556bad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556bad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:56:53.111911
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75587750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7558836936950684 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:57:03.829289
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:57:32.328020
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7541160583496094 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:57:42.316014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75578a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:57:52.472550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7692184448242188 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:59:03.956877
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754949f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754949f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754949f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:59:33.013895
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f2ceb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7555146217346191 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 09:59:42.866362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755079f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755079f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755079f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 09:59:52.884277
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.755094051361084 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:00:03.852670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:00:33.090302
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7542269229888916 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:00:43.096348
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556dab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556dab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556dab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:00:53.182805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755155b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7584826946258545 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:01:03.717116
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:01:32.467645
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7572727203369141 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:01:42.494366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b8a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:01:52.531660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7601573467254639 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:02:03.626939
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e7a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:02:32.747902
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7537117004394531 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:02:42.758413
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:02:52.775949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.761366605758667 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:03:04.432447
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c8a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:03:32.964735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7535033226013184 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:03:43.110721
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75563a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:03:52.975733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754977d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7586734294891357 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:04:02.860214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75536970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:04:32.187262
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7555232048034668 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:04:42.248394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:04:52.143533
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7593910694122314 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:05:03.778311
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75578a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:05:32.482794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7597236633300781 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:05:42.356769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:05:52.550577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e75d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7562992572784424 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:06:03.606300
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:06:32.763390
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754955d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.758786678314209 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:06:42.839821
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755849f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755849f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755849f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:06:52.774814
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755396b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7591807842254639 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:07:04.229957
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75517a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:07:33.133804
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7558238506317139 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:07:43.042052
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e7210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:07:53.112466
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7564802169799805 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:08:02.973338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bbb10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bbb10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bbb10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:08:32.414988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7557728290557861 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:08:42.387580
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:08:52.304738
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7605576515197754 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:09:03.882322
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553dad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553dad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553dad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:09:32.610876
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7565329074859619 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:09:42.583572
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:09:52.515607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7557475566864014 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:10:03.556033
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:10:32.747749
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.755974531173706 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:10:42.746509
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75550910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:10:52.710473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7538647651672363 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:11:04.182475
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:11:33.050695
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7647781372070312 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:11:43.028046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fe9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:11:53.026677
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7649381160736084 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:12:02.958610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:12:32.288450
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7582230567932129 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:12:42.257260
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75508a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:12:52.204359
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7557313442230225 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:13:03.762521
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:13:32.464670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7558639049530029 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:13:42.529789
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75571a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:13:52.432930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7617518901824951 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:14:03.324703
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:14:32.685584
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7610204219818115 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:14:42.651351
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bb9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:14:52.719211
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7561256885528564 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:15:04.276088
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:15:32.982628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7646970748901367 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:15:42.921917
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75512ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:15:53.058111
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7610139846801758 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:16:02.906633
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a1a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:16:32.437392
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7610251903533936 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:16:45.837639
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:16:52.303919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7588779926300049 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:17:03.542907
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75569a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:17:32.536626
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7570662498474121 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:17:42.525700
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:17:52.466601
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7561132907867432 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:18:03.364104
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:18:32.665666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7645759582519531 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:18:42.768366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75577950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:18:52.718728
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7591440677642822 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:19:04.517895
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:19:32.910278
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7564895153045654 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:19:43.111713
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bf9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:19:52.958354
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7581615447998047 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:20:02.970086
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:20:32.241839
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7606935501098633 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:20:42.213141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75569a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:20:52.155342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7611546516418457 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:21:03.707738
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:21:32.373698
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e66b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7569055557250977 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:21:42.322040
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75eeeeb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75eeeeb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75eeeeb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:21:52.394780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.756333589553833 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:22:03.284949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75575a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:22:32.613178
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7607955932617188 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:22:42.560315
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75511a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:22:52.671352
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7549490928649902 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:23:04.496704
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:23:33.035644
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7593615055084229 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:23:42.999690
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75552a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:23:52.882237
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7590625286102295 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:24:03.813852
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755679f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755679f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755679f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:24:33.206704
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755485f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7682182788848877 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:24:43.120744
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:24:53.077666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7571699619293213 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:25:03.636932
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:25:32.268610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7560298442840576 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:25:42.322211
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754af990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:25:52.319079
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7563965320587158 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:26:03.258871
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75522a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:26:32.493613
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7581071853637695 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:26:42.534612
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:26:52.551662
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7603855133056641 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:27:04.145615
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:27:32.829734
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7653229236602783 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:27:42.731398
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:27:52.775069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7541031837463379 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:28:03.589653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75569630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:28:32.972141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755166f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7568323612213135 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:28:43.005510
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a8250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:28:53.153991
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7604770660400391 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:29:03.928479
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755639b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755639b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755639b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:29:32.350189
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7647202014923096 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:29:42.383178
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75517a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:29:52.386572
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7575497627258301 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:30:03.148333
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fa970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:30:32.566837
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7600338459014893 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:30:42.631709
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75492a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:30:52.586319
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b16f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7678773403167725 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:31:04.187534
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7621cfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7621cfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7621cfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:31:32.939928
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7613964080810547 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:31:42.848795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75521910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:31:52.787905
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.758244514465332 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:32:03.730579
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:32:32.993371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7591242790222168 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:32:43.022082
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75530a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:32:53.090432
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7580513954162598 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:33:03.832816
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75536ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:33:32.302021
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76221770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7583720684051514 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:33:42.420451
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:33:52.358004
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7606315612792969 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:34:03.359061
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:34:32.550163
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7567262649536133 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:34:42.591976
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:34:52.592280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7594294548034668 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:35:04.199946
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:35:32.806251
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7588582038879395 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:35:42.822518
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:35:52.829316
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7599313259124756 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:36:03.684393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75494a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:36:33.097243
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7540092468261719 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:36:43.057633
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:36:53.049050
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755346d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7582931518554688 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:37:03.578351
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75586a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:37:32.265087
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7586150169372559 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:37:42.349063
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75507a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:37:52.334490
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755245f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7530422210693359 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:38:03.229404
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:38:32.561656
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7612748146057129 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:38:42.565770
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755029f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755029f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755029f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:38:52.570207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755136f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7620849609375 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:39:03.970773
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:39:32.779316
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7556428909301758 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:39:42.772079
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75572990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:39:52.788585
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7566423416137695 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:40:03.512146
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:40:33.023824
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7602789402008057 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:40:42.995412
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755129d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755129d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755129d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:40:52.965564
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7551536560058594 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:41:03.301697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:41:32.209061
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7566514015197754 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:41:42.242795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75570a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:41:52.191314
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7595329284667969 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:42:03.148983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:42:32.394576
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7610471248626709 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:42:42.517296
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:42:52.447842
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7621171474456787 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:43:03.922895
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75541a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:43:32.739975
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f876b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.754971981048584 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:43:42.752882
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75486a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75486a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75486a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:43:52.678745
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7652935981750488 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:44:03.515673
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:44:32.943794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755857b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7617270946502686 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:44:42.903725
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75532a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:44:52.907854
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755336f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7598326206207275 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:45:04.223517
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75491930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75491930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75491930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:45:33.136239
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7648098468780518 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:45:43.096801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:45:53.095697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7840440273284912 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:46:03.090696
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:46:32.291121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7569317817687988 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:46:42.293829
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:46:52.308517
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7571823596954346 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:47:03.484994
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75492a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:47:32.506775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.759706974029541 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:47:42.540031
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75550a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:47:52.546314
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558d730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7604696750640869 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:48:03.385789
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551b4f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b4f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b4f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:48:32.890330
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7665011882781982 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:48:42.837187
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:48:52.739312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a06d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7570333480834961 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:49:04.373370
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:49:32.958576
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755886b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7611143589019775 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:49:42.976316
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:49:52.951906
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7859792709350586 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:50:02.822336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:50:32.181799
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7575385570526123 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:50:42.214577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:50:52.174659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755587b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7577829360961914 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:51:03.570797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e7a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:51:32.456407
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755216f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.76401686668396 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:51:42.404599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:51:52.388530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d3730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7564589977264404 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:52:03.272097
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:52:32.686856
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7551414966583252 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:52:42.687020
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75576ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:52:52.617133
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7654726505279541 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:53:04.316513
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755785d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755785d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755785d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:53:32.903854
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755876b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7578878402709961 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:53:42.900888
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755868f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755868f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755868f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:53:52.837076
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7646219730377197 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:54:03.901676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eaa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eaa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eaa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:54:33.045504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f314b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7618682384490967 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:54:43.061849
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ac9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:54:53.089516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754946f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.760303258895874 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:55:03.808666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75510910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:55:32.353721
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7640292644500732 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:55:42.321735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75580b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:55:52.420051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7588434219360352 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:56:03.466397
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75559970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:56:32.669413
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f76f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7587890625 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:56:42.615290
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x764d6f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x764d6f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x764d6f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:56:52.610345
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755266d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7578327655792236 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:57:03.905069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:57:32.850288
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7561957836151123 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:57:42.821105
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:57:52.847547
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7540724277496338 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:59:03.914350
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75536970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:59:32.700717
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7602806091308594 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 10:59:42.693117
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754efa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754efa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754efa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 10:59:52.607366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7611846923828125 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:00:03.631552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555c8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:00:32.899257
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7552332878112793 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:00:42.859489
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755069f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755069f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755069f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:00:52.823604
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7604074478149414 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:01:04.419376
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549f510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:01:33.146781
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7578058242797852 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:01:43.152111
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75581a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:01:53.159238
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7586719989776611 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:02:03.113424
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ff990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:02:32.393135
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75591750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7611403465270996 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:02:42.329339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75491a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75491a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75491a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:02:52.322972
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7579441070556641 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:03:03.969754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:03:32.510232
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.758481502532959 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:03:42.526907
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dfab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:03:52.671371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.762432336807251 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:04:03.559414
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:04:32.828209
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7621874809265137 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:04:42.817287
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75542ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:04:52.816826
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7657978534698486 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:05:04.380657
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75498b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:05:33.105545
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7555973529815674 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:05:43.047219
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x764d7f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x764d7f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x764d7f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:05:53.038419
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7552382946014404 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:06:03.004507
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:06:32.336268
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7635858058929443 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:06:42.247842
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a4ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:06:52.257298
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7620344161987305 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:07:04.258959
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755619d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755619d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755619d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:07:32.575335
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755205d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7548916339874268 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:07:42.553215
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:07:52.453868
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f15f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7613778114318848 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:08:03.439963
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:08:32.670378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.758307695388794 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:08:42.647400
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75491a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75491a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75491a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:08:52.661296
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7580459117889404 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:09:04.398712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554caf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554caf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554caf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:09:32.961237
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7625312805175781 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:09:42.931037
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:09:52.921760
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f06b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7611868381500244 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:10:03.851497
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:10:33.145281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75587750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7625377178192139 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:10:43.186541
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:10:53.169682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7633922100067139 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:11:04.061087
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75500a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:11:32.441541
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7650902271270752 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:11:42.371196
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754faa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754faa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754faa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:11:52.455987
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7629094123840332 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:12:03.371149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:12:32.667087
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7590224742889404 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:12:42.675429
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75519ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:12:52.668670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7586772441864014 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:13:03.836984
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:13:32.911587
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7571797370910645 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:13:42.892311
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:13:52.894053
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755136d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7598319053649902 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:14:03.593135
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:14:33.107032
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7612330913543701 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:14:43.145324
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75542910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:14:53.086061
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75591770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7618367671966553 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:15:03.661401
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cb990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:15:32.275732
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548cdb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7584776878356934 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:15:42.313384
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75492950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:15:52.316632
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7672955989837646 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:16:02.958677
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75532a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:16:32.365426
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755526f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7590675354003906 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:16:42.338649
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754da9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:16:52.281598
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755765f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7609164714813232 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:17:04.037483
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:17:32.543048
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558d610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7634658813476562 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:17:42.533689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754da990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:17:52.556467
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755126f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7588706016540527 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:18:03.621906
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75518ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:18:32.735529
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7609717845916748 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:18:42.890155
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:18:52.736409
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7638118267059326 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:19:04.265167
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:19:32.975479
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7571189403533936 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:19:43.062767
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75537a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:19:53.036371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7660355567932129 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:20:02.835730
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755439f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755439f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755439f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:20:32.222683
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755496f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7611496448516846 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:20:42.212197
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755539b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755539b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755539b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:20:52.217212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x764ccf50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7662184238433838 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:21:03.649140
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75539930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:21:32.431253
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d3590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7629926204681396 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:21:42.484085
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ada70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ada70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ada70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:21:52.601053
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7608187198638916 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:22:03.519654
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:22:32.794087
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7630431652069092 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:22:42.802134
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75533930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:22:52.805262
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.762671947479248 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:23:04.352780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c6ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:23:33.028815
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f36d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7628703117370605 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:23:43.054881
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:23:52.985412
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7593820095062256 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:24:02.948761
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75558a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:24:32.261927
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7593739032745361 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:24:42.150287
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75553970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:24:52.161163
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7561507225036621 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:25:03.818736
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:25:32.435815
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7554483413696289 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:25:42.471656
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:25:52.346490
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75527eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7624461650848389 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:26:03.220616
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:26:32.607193
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.756218433380127 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:26:42.528105
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75566a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:26:52.522047
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f57f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7627642154693604 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:27:04.080308
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:27:32.809714
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.760122537612915 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:27:42.783929
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ac990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:27:52.709319
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7569968700408936 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:28:03.578933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75554a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:28:32.934775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7614121437072754 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:28:42.955404
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:28:52.999845
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558e7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7566325664520264 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:29:03.450438
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75545970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:29:32.186283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755867d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7560000419616699 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:29:42.206870
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:29:52.296327
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7634837627410889 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:30:03.066143
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b7ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:30:32.571158
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.759033203125 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:30:42.645750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:30:52.612119
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f79970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7574613094329834 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:31:04.280649
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:31:32.816032
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7592935562133789 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:31:42.790375
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553aad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553aad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553aad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:31:52.875166
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fc49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7614696025848389 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:32:03.686950
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:32:33.087040
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7629477977752686 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:32:43.064269
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ad9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:32:53.084534
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7616980075836182 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:33:03.665347
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75495a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:33:32.272196
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7633087635040283 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:33:42.310008
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ae9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ae9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ae9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:33:52.439862
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75588750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7617251873016357 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:34:03.292200
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:34:32.683040
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7674593925476074 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:34:42.706598
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:34:52.614562
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7589244842529297 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:35:04.399233
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556c8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556c8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556c8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:35:32.822554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7612521648406982 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:35:42.945960
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:35:52.817177
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755316f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7664022445678711 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:36:03.709511
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75508a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:36:33.025986
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7679400444030762 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:36:43.080127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75494b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:36:53.051989
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fee10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7576582431793213 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:37:03.627215
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75571950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:37:32.297973
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754926f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7596099376678467 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:37:42.297860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:37:52.277451
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7561991214752197 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:38:03.276253
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75544a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:38:32.477876
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7626640796661377 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:38:42.467429
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eaa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eaa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eaa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:38:52.497965
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f0d7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.759713888168335 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:39:03.988003
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dfad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:39:32.838675
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7566471099853516 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:39:42.828983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:39:52.770472
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.759070634841919 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:40:03.522496
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:40:32.976706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7656bf90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7575247287750244 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:40:43.065489
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a1a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:40:52.940143
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7617137432098389 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:41:04.712144
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:41:33.124215
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7584569454193115 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:41:43.156612
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75574a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:41:53.253412
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f47b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7582402229309082 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:42:03.106873
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75509890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:42:32.538232
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f1570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7673830986022949 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:42:42.531058
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75547a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:42:52.485494
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7662520408630371 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:43:03.961130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550ca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:43:32.821216
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.757683515548706 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:43:42.732015
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75581990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:43:52.761230
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fa0570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7626850605010986 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:44:03.770062
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:44:33.058744
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7577235698699951 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:44:43.004553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c8910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:44:53.079859
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7588701248168945 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:45:03.412509
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755109b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755109b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755109b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:45:34.478978
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.763394832611084 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:45:42.480077
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:45:52.469369
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7593185901641846 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:46:03.390421
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75516a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:46:32.712236
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7603163719177246 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:46:42.670001
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:46:52.691783
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a85d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7608697414398193 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:47:04.220757
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:47:32.929929
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fb7410>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7621607780456543 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:47:42.973902
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:47:52.981721
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755866b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7626621723175049 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:48:02.999289
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:48:32.181919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7673764228820801 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:48:42.177231
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75553a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:48:52.181081
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7563414573669434 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:49:03.646456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:49:32.480489
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7600352764129639 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:49:42.397484
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754939d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754939d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754939d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:49:52.421893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7567660808563232 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:50:03.311641
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:50:32.620006
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7640852928161621 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:50:42.582130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x765f45b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x765f45b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x765f45b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:50:52.582577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e86b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7608680725097656 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:51:04.235325
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:51:32.774871
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c46d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.761366605758667 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:51:42.809580
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75586a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:51:52.750812
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7636322975158691 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:52:03.619933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:52:33.041087
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d36b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7607676982879639 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:52:43.030679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75552a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:52:52.971083
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755676d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7604222297668457 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:53:03.593048
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d88f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d88f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d88f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:53:32.181576
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75515730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7622640132904053 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:53:42.251536
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75520190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:53:52.165746
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7617759704589844 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:54:03.020602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75554970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:54:32.387693
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7571811676025391 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:54:42.378399
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75513a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:54:52.380862
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7617309093475342 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:55:04.069329
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755029d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755029d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755029d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:55:32.710445
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7583763599395752 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:55:42.586878
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75576a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:55:52.600648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.758552074432373 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:56:03.472837
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75487910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:56:32.842984
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755377b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7620675563812256 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:56:42.852733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754969d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754969d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754969d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:56:52.887192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7566351890563965 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:57:04.360685
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754da910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:57:33.194936
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7583975791931152 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:57:43.134949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e1ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:57:53.192051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755066f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7640130519866943 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:59:03.589733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ee9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:59:32.448637
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7584881782531738 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 11:59:42.660940
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 11:59:52.486521
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7619626522064209 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:00:03.352696
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755058b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755058b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755058b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:00:32.690665
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7585923671722412 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:00:42.696682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75493a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:00:52.716731
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7611832618713379 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:01:04.428832
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755169d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755169d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755169d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:01:32.953549
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7608993053436279 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:01:43.007184
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75570a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:01:52.867839
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7585728168487549 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:02:03.615086
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:02:33.164797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b8d830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7636590003967285 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:02:43.105723
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75564a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:02:53.090674
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7592501640319824 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:03:03.218545
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754889f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754889f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754889f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:03:32.407099
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7572250366210938 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:03:42.297741
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:03:52.281737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7606942653656006 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:04:03.236561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755339f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755339f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755339f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:04:32.531740
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7566852569580078 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:04:42.471442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ba9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:04:52.531668
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7629528045654297 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:05:03.988603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75488a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75488a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75488a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:05:32.845963
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a16b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7622058391571045 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:05:42.834777
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:05:52.766944
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7597980499267578 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:06:03.619416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755809d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755809d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755809d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:06:32.979176
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75573730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7633812427520752 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:06:42.940396
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:06:52.949575
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7586305141448975 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:07:04.704382
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755428f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755428f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755428f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:07:33.149610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f96d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7679510116577148 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:07:43.173490
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75518ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:07:53.166101
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755646d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7566502094268799 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:08:02.976933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:08:32.437152
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7596032619476318 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:08:42.445321
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:08:52.375682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7632327079772949 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:09:04.027403
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a1ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:09:32.657115
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7598540782928467 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:09:42.522947
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75551a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:09:52.581076
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7612714767456055 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:10:03.467694
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75538970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:10:32.780872
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7612416744232178 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:10:42.784822
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:10:52.760937
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7598748207092285 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:11:04.288457
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75534930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:11:32.958668
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7579731941223145 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:11:42.962598
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75532ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:11:52.957150
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7581803798675537 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:12:02.826781
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754939b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754939b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754939b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:12:32.170608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.757086992263794 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:12:42.186506
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e0a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:12:52.182460
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755326f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7624797821044922 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:13:03.801450
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755469f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755469f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755469f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:13:32.372544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7621939182281494 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:13:42.460021
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:13:52.431836
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b45d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7611870765686035 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:14:03.245530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75554910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:14:32.606288
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7625749111175537 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:14:42.694703
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75570a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:14:52.674957
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7643566131591797 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:15:04.124156
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:15:33.006880
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x759f8c90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7591195106506348 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:15:42.962551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:15:53.058304
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7608740329742432 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:16:02.943640
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f9ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:16:32.357128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7640278339385986 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:16:42.413061
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:16:52.260225
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e66b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7625401020050049 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:17:04.032004
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:17:32.480696
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7627651691436768 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:17:42.480252
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75518a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:17:52.592651
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7582950592041016 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:18:03.453240
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:18:32.806276
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7654678821563721 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:18:42.908062
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548eab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548eab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548eab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:18:52.768618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7577519416809082 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:19:04.674716
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dbaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dbaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dbaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:19:33.002684
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7575945854187012 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:19:43.109076
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75491a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75491a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75491a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:19:52.976046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754906f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7643959522247314 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:20:02.850980
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75582930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:20:32.256619
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7643043994903564 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:20:42.280186
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75515570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75515570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75515570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:20:52.212073
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.757953405380249 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:21:03.883189
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:21:32.432729
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7567775249481201 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:21:42.448306
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b08f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b08f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b08f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:21:52.539131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755046f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7612266540527344 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:22:03.432735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552a230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:22:32.757781
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7593722343444824 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:22:42.717019
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:22:52.749431
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7639045715332031 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:23:04.558074
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:23:33.076596
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75590710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7573816776275635 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:23:43.055420
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:23:53.041739
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7658374309539795 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:24:02.869445
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a1ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:24:32.314901
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7666399478912354 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:24:42.315847
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75557a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:24:52.331812
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f65d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.759049654006958 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:25:03.638546
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75576a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:25:32.677622
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7632672786712646 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:25:42.536813
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:25:52.583279
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7686772346496582 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:26:03.395942
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:26:32.862894
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7645044326782227 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:26:42.763988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:26:52.760838
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7591037750244141 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:27:04.419410
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:27:33.000362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e35f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7594521045684814 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:27:43.122747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75581a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:27:53.002930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.759568452835083 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:28:02.898527
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:28:32.213014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552f750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7655179500579834 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:28:42.207569
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755129d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755129d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755129d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:28:52.177761
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755596f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7632577419281006 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:29:03.728670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:29:32.497717
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755606f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7588944435119629 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:29:42.444855
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75518a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:29:52.397970
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7640855312347412 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:30:03.176796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:30:32.632197
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754975b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7607414722442627 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:30:42.641026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ec9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:30:52.608970
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d66f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7597510814666748 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:31:04.160195
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557f4f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f4f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f4f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:31:32.801311
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7606253623962402 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:31:42.933147
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:31:52.815947
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7683205604553223 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:32:03.564492
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75512970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:32:33.160943
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7598013877868652 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:32:43.013908
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754af5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:32:52.974568
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7646124362945557 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:33:03.636317
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75575a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:33:32.211038
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7604880332946777 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:33:42.279924
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c2970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:33:52.197569
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7631480693817139 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:34:03.115516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:34:32.438666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755826b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7639718055725098 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:34:42.467552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75e319b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75e319b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75e319b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:34:52.406889
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7629284858703613 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:35:04.201003
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75487a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:35:32.774689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755027d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7622156143188477 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:35:42.714773
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75581ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:35:52.609633
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7576391696929932 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:36:03.487660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754baa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754baa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754baa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:36:32.817834
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558b790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7657687664031982 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:36:42.855771
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551fa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551fa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551fa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:36:52.811223
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7580904960632324 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:37:04.629190
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:37:33.052089
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75aa7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7580797672271729 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:37:43.115040
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755355b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755355b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755355b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:37:53.101085
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755055f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.768507719039917 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:38:02.866141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:38:32.369743
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7607252597808838 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:38:42.307469
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754de9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:38:52.321000
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7603797912597656 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:39:03.677493
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755459d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755459d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755459d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:39:32.536666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7652521133422852 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:39:42.560843
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75489a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:39:52.604506
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f1710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7638792991638184 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:40:03.571240
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c4690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:40:32.822678
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7684543132781982 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:40:42.799334
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754daab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754daab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754daab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:40:52.783556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7631988525390625 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:41:04.475750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75572a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:41:33.064542
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755676f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7607612609863281 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:41:43.092731
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550e1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:41:53.060550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7638969421386719 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:42:02.838654
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:42:32.326426
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7604832649230957 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:42:42.254054
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75547a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:42:52.234934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7646188735961914 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:43:03.731858
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75582a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:43:32.535475
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7604720592498779 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:43:42.584202
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:43:52.527192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7605006694793701 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:44:03.365212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75580990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:44:32.802149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7614796161651611 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:44:42.753124
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556eaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556eaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556eaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:44:52.732697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7615036964416504 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:45:04.310552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75546a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:45:32.982526
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7605764865875244 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:45:42.916312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:45:52.956145
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7656266689300537 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:46:03.861126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:46:33.174839
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7602212429046631 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:46:43.206627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75484a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75484a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75484a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:46:53.235115
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7673096656799316 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:47:03.866677
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:47:32.535085
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755506f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7599010467529297 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:47:42.486318
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:47:52.474395
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.763735294342041 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:48:03.488460
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c5a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:48:32.821039
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7650816440582275 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:48:42.786526
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:48:52.778635
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7596986293792725 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:49:04.067629
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:49:33.149201
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755227d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7622702121734619 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:49:43.086218
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75496970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:49:52.958309
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7589395046234131 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:50:02.873002
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75546a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:50:32.113650
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7683897018432617 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:50:42.181076
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75557a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:50:52.112074
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755427d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7581675052642822 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:51:03.773831
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75550950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:51:32.469771
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7626173496246338 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:51:42.372341
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:51:52.336046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75505730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7632715702056885 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:52:03.309016
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ea9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:52:32.581828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7664461135864258 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:52:42.539753
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:52:52.631254
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7627646923065186 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:53:04.230085
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:53:32.846704
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7652707099914551 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:53:42.863205
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75489a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:53:52.921828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755486b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7630043029785156 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:54:03.791712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fc8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:54:33.167515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a77b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7681245803833008 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:54:43.302672
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:54:53.142430
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7638885974884033 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:55:03.726510
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:55:32.407715
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7630155086517334 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:55:42.793723
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754879b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754879b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754879b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:55:52.367487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7653989791870117 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:56:03.253388
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75489a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:56:32.646108
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7612226009368896 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:56:42.560194
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75585a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75585a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75585a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:56:52.607899
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7686367034912109 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:57:04.371503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75537a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:57:32.857794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7626287937164307 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:57:42.936099
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:57:52.789910
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.762138843536377 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:59:04.015806
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75fbe3b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fbe3b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fbe3b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:59:32.554670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755296f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7645297050476074 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 12:59:42.596623
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75566630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 12:59:52.617188
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7667527198791504 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:00:03.412431
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:00:32.849528
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7593622207641602 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:00:42.904843
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75578a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:00:52.953264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7635092735290527 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:01:03.672165
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75521a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:01:32.181199
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7614428997039795 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:01:42.180426
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75528990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:01:52.170862
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7639505863189697 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:02:03.115609
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75562a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:02:32.387625
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.761136531829834 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:02:42.412339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e2a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:02:52.335860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755056f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7714643478393555 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:03:04.150841
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755269b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755269b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755269b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:03:32.548899
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755145d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7622666358947754 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:03:42.550163
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75518970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:03:52.589155
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556c730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7601752281188965 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:04:03.317830
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754baa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754baa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754baa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:04:32.790659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7586431503295898 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:04:42.767720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:04:52.779138
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f96f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7643499374389648 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:05:04.585708
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cf970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:05:33.043421
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a86f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7594597339630127 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:05:43.028514
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:05:52.972476
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558c6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.763561487197876 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:06:02.754404
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754969d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754969d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754969d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:06:32.141708
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7610297203063965 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:06:42.199209
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:06:52.131174
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7612597942352295 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:07:03.429768
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754989d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754989d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754989d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:07:32.366629
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7663867473602295 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:07:42.507163
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75533a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:07:52.492797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1718802452087402 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:08:03.312322
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eb910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:08:32.677772
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7658154964447021 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:08:42.725988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d1ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:08:52.720524
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c37f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7643308639526367 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:09:04.406395
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75512570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:09:32.988980
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7613546848297119 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:09:42.994320
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c8a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:09:52.938898
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7640297412872314 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:10:02.885578
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7616b730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7616b730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7616b730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:10:32.230959
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7700936794281006 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:10:42.241422
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553a8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:10:52.166796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f87830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7598133087158203 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:11:03.771806
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:11:32.510601
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7615659236907959 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:11:42.399013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754da930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:11:52.400957
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7595858573913574 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:12:03.202027
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75525ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:12:32.728081
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.765648365020752 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:12:42.730265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:12:52.674186
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75573750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7667884826660156 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:13:04.296758
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c9b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:13:32.854615
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7619569301605225 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:13:42.873979
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:13:52.868744
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7612056732177734 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:14:03.613325
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755178f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755178f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755178f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:14:33.125922
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7654175758361816 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:14:43.145266
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75547a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:14:53.070553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c85b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7628300189971924 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:15:03.702530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75540930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:15:32.340710
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7616186141967773 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:15:42.351997
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75493950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:15:52.279446
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7614808082580566 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:16:03.226199
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:16:32.628397
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b76d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.766638994216919 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:16:42.491666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75579550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:16:52.560106
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7641997337341309 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:17:03.922756
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:17:32.820797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7618215084075928 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:17:42.787928
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755769f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755769f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755769f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:17:52.779131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7620728015899658 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:18:03.734585
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fd9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:18:33.019953
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755886d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7636263370513916 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:18:43.059136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754faa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754faa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754faa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:18:52.997446
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.759838342666626 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:19:03.280973
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a7ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:19:32.256623
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7601425647735596 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:19:42.271849
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:19:52.231151
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755406d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7587974071502686 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:20:03.188580
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:20:32.428518
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7612526416778564 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:20:42.440144
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755519d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755519d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755519d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:20:52.422059
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f3a390>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7627615928649902 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:21:03.946362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ada50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ada50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ada50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:21:32.661222
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7740981578826904 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:21:42.653970
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:21:52.651658
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75587730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7626028060913086 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:22:03.510843
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548bad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548bad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548bad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:22:32.854473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7663562297821045 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:22:42.849317
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755259d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755259d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755259d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:22:52.838242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b26f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7617208957672119 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:23:04.630139
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755199d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755199d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755199d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:23:33.065420
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7689285278320312 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:23:43.287532
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:23:53.072613
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b46d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7600905895233154 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:24:02.984316
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75504a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:24:32.343088
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552f770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7619748115539551 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:24:42.311685
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553daf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553daf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553daf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:24:52.295102
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7605812549591064 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:25:04.167757
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75560a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:25:32.549552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7700917720794678 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:25:42.658253
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:25:52.490826
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c06d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7618677616119385 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:26:03.540030
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75520990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:26:32.702101
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755066f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7665426731109619 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:26:42.715957
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:26:52.716348
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7620620727539062 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:27:04.175066
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:27:32.936278
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7598991394042969 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:27:43.021389
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:27:52.943258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755795d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7711632251739502 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:28:03.985246
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b8930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:28:33.226672
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a25f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.761789083480835 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:28:43.186402
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75539930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:28:53.170689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.766242265701294 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:29:03.561134
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fa930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:29:32.526803
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556c790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7643299102783203 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:29:42.412123
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:29:52.346335
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755635f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7644321918487549 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:30:03.192175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:30:32.520903
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7653336524963379 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:30:42.546704
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75545a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:30:52.566777
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.765775203704834 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:31:04.355677
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a7ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:31:32.815439
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.763608455657959 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:31:42.805596
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:31:52.931754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7595970630645752 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:32:03.821877
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e5910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:32:33.185344
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7594597339630127 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:32:43.114008
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e1950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:32:53.103779
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7670595645904541 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:33:03.577191
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:33:32.435001
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755766b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7599799633026123 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:33:42.372562
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:33:52.309457
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7653892040252686 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:34:03.084334
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:34:32.512970
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7663352489471436 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:34:42.530088
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:34:52.596146
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7599668502807617 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:35:04.365094
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75497ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:35:32.853363
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7701880931854248 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:35:42.821467
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:35:52.856804
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755366f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7624988555908203 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:36:03.659418
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75536a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:36:33.055091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7659664154052734 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:36:43.161808
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:36:53.097073
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7622919082641602 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:37:03.531742
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bc990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:37:32.300055
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f16b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7661466598510742 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:37:42.296478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cc910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:37:52.310687
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7617194652557373 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:38:03.127697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75562930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:38:32.508904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fc58f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7623422145843506 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:38:42.503799
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:38:52.556062
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7635016441345215 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:39:04.122321
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:39:32.889094
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7625424861907959 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:39:42.820386
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e6910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:39:52.743226
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755895d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7654078006744385 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:40:03.688598
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75504a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:40:32.938265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7620766162872314 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:40:42.964754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75572930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:40:53.018264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dbe70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7654333114624023 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:41:03.452967
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:41:32.290718
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75588710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7612957954406738 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:41:42.220554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557bad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557bad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557bad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:41:52.274758
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755026d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7621121406555176 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:42:03.107040
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bb990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:42:32.495603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7611186504364014 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:42:42.478874
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75492ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:42:52.458374
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7650330066680908 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:43:03.987081
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755308d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755308d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755308d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:43:32.850666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7709348201751709 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:43:42.875214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fc570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:43:52.785599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7636611461639404 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:44:03.615686
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ccab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ccab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ccab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:44:32.952491
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f37b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7665464878082275 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:44:42.992585
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75566a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:44:52.986130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7711338996887207 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:45:03.526428
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75549990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:45:32.224378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755565b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7682778835296631 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:45:42.182599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75564a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:45:52.334478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7695434093475342 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:46:03.234325
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ba890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:46:32.646309
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7642395496368408 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:46:42.517346
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:46:52.563825
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755485d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7607872486114502 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:47:04.028983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75526ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:47:32.819440
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552f710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7630913257598877 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:47:42.786419
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75507a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:47:52.792708
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7670536041259766 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:48:03.611240
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d8910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:48:33.003153
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7608850002288818 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:48:42.975448
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755639d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755639d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755639d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:48:52.944608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755605b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7600400447845459 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:49:03.444055
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:49:32.210351
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7672936916351318 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:49:42.189874
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75564a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:49:52.195494
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7625620365142822 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:50:03.105523
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75525ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:50:32.465568
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7632620334625244 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:50:42.494531
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:50:52.472171
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7653355598449707 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:51:04.141146
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:51:32.695128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.762784481048584 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:51:42.727042
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a51f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a51f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a51f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:51:52.774606
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7626388072967529 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:52:03.589608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eaa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eaa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eaa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:52:32.969011
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7710635662078857 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:52:42.988115
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75568990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:52:53.091960
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7636940479278564 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:53:03.810226
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:53:32.412001
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7611253261566162 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:53:42.308598
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a0ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:53:52.309670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7629494667053223 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:54:03.236187
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:54:32.591129
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755536d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7659695148468018 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:54:42.505727
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:54:52.490574
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.764045000076294 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:55:04.034514
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755349d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755349d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755349d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:55:32.715694
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755116f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7663755416870117 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:55:42.718318
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755689d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755689d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755689d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:55:52.707356
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.765721321105957 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:56:03.524445
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:56:32.923283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755227b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7607989311218262 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:56:42.902445
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:56:52.900032
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f1790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7712275981903076 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:57:04.550557
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f1550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f1550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f1550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:57:33.201674
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7635838985443115 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:57:43.265715
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x764ccf70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x764ccf70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x764ccf70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:57:53.149067
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75515570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7728588581085205 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:59:03.833825
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:59:32.869022
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7643804550170898 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
2026-05-04 13:18:17.121777
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:18:43.721626
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8743906021118164 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:18:53.643307
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b7910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
 val : 1 : upload photos already in processing! 
2026-05-04 13:19:04.219262
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:19:32.920954
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7616002559661865 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:19:42.999708
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f3a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:19:52.821311
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7683298587799072 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:20:03.684196
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:20:33.109281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7717571258544922 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:20:43.040894
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d2a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:20:53.080259
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.762432336807251 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:21:03.374221
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:21:32.425008
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755857d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7684359550476074 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:21:42.321422
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:21:52.388415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7609744071960449 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:22:03.385323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75569a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:22:32.591212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552f6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7680351734161377 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:22:42.610161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755445f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755445f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755445f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:22:52.597928
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7930700778961182 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:23:04.207324
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:23:32.832201
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7606265544891357 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:23:42.861686
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:23:52.862011
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7721436023712158 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:24:03.802363
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:24:33.043957
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754997b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7644829750061035 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:24:43.087740
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:24:53.018655
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7624201774597168 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:25:03.816434
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75524a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:25:32.243569
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f86f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7598836421966553 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:25:42.245829
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75554970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:25:52.191354
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7673063278198242 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:26:03.077089
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eda90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eda90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eda90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:26:32.399408
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7654726505279541 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:26:42.415646
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:26:52.406545
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.770111083984375 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:27:04.029329
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755438f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755438f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755438f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:27:32.631641
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7624020576477051 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:27:42.610582
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ab930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:27:52.719429
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.769050121307373 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:28:03.699995
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75561a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:28:32.976689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f06f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7636494636535645 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:28:42.918747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:28:52.864969
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f17b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7634296417236328 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:29:04.472391
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:29:33.236784
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7647547721862793 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:29:43.153156
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75521a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:29:53.134039
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755355d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7709963321685791 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:30:02.975955
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d61b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d61b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d61b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:30:32.459203
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f55f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7658469676971436 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:30:42.346536
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755419d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755419d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755419d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:30:52.489846
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7771077156066895 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:31:04.360306
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e5a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:31:32.705393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7638349533081055 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:31:42.752460
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755038f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755038f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755038f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:31:52.746672
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7634017467498779 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:32:03.716669
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755178b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755178b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755178b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:32:32.962156
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755416f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7658236026763916 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:32:43.053818
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ab970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:32:52.918775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.76432204246521 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:33:04.324726
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:33:33.172871
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.762040376663208 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:33:43.219603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75564a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:33:53.146910
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7682268619537354 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:34:03.031624
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e6890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:34:32.494039
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a46d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7597076892852783 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:34:42.448340
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b3ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:34:52.325750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f95f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.765373945236206 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:35:03.998752
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cf930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:35:32.560571
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75efb5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7669737339019775 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:35:42.541514
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:35:52.520901
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7626960277557373 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:36:03.503692
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75494a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:36:32.795440
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7616984844207764 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:36:42.759014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755049b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755049b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755049b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:36:52.750371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75587750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7673709392547607 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:37:04.169704
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:37:32.990999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75587730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7620847225189209 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:37:43.109733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:37:53.040815
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.9787898063659668 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:38:03.054946
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75544950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:38:32.268401
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e66f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7623858451843262 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:38:42.314256
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75538990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:38:52.234103
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.76088547706604 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:39:03.952778
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:39:32.537610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.768873929977417 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:39:42.524703
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75508a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:39:52.565076
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7717416286468506 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:40:03.378846
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75582a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:40:32.776651
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d06b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7654376029968262 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:40:42.819679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75488990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75488990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75488990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:40:52.842481
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7750215530395508 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:41:04.415749
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fa990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:41:33.089778
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7621712684631348 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:41:43.048310
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75584990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:41:53.038979
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7645421028137207 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:42:02.894922
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e7ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:42:32.344114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7663891315460205 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:42:42.249819
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755108f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755108f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755108f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:42:52.244550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7650349140167236 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:43:03.957879
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75560970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:43:32.504564
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7714104652404785 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:43:42.492337
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75564a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:43:52.527777
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7624776363372803 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:44:03.458761
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75568ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:44:32.759023
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7625768184661865 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:44:42.763647
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75549af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:44:52.731175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7661342620849609 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:45:04.488210
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b4ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:45:32.993671
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7625401020050049 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:45:43.033619
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:45:52.984824
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7666153907775879 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:46:02.903326
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ada90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ada90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ada90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:46:32.201824
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755557b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7679116725921631 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:46:42.277533
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754faa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754faa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754faa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:46:52.184411
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7615840435028076 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:47:03.685442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:47:32.398126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7702937126159668 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:47:42.456987
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:47:52.393939
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a17f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7680814266204834 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:48:03.400549
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:48:32.749579
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7636537551879883 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:48:42.706064
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ffa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ffa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ffa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:48:52.617750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755636b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7723691463470459 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:49:04.251224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:49:32.856857
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f76f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7626020908355713 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:49:42.842820
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:49:52.897891
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755496b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7729086875915527 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:50:03.651780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754df930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:50:33.130654
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7695333957672119 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:50:43.133081
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:50:53.159256
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f66710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7606830596923828 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:51:03.582141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e08f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e08f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e08f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:51:32.374357
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ae6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7704029083251953 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:51:42.396872
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75579a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:51:52.395246
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7623593807220459 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:52:03.439143
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75571910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:52:32.576712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7656445503234863 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:52:42.613051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75488a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75488a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75488a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:52:52.592678
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7719638347625732 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:53:04.097328
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:53:32.790828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a16f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7655441761016846 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:53:42.910214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bb9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:53:52.793141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.766512393951416 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:54:03.689865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755829f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755829f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755829f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:54:33.018837
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f57d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7687766551971436 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:54:43.014418
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:54:53.023899
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7654201984405518 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:55:03.806920
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:55:32.218292
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7667274475097656 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:55:42.216613
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:55:52.255652
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7676723003387451 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:56:03.205951
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754908f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754908f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754908f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:56:32.415046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7665202617645264 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:56:42.467947
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:56:52.424756
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7650802135467529 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:57:03.982351
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:57:32.668417
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b26f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7715902328491211 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:57:42.637009
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b3ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:57:52.626224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7626502513885498 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:59:04.220056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75550a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:59:33.103594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558d730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7708470821380615 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 13:59:43.068040
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 13:59:53.102498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7671167850494385 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:00:02.808919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75521a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:00:32.294918
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755295d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7664430141448975 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:00:42.446048
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75500a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:00:52.288054
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755426f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7664809226989746 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:01:04.002144
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553ba90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ba90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ba90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:01:32.543122
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7688543796539307 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:01:42.691923
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ce1f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce1f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce1f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:01:52.590411
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7658798694610596 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:02:03.447075
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ec930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:02:32.784676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7629837989807129 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:02:42.864631
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:02:52.792736
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755027d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.760556697845459 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:03:04.522478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:03:33.046671
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7621738910675049 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:03:43.015191
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755739d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755739d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755739d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:03:53.035240
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7632908821105957 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:04:02.911515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:04:32.231742
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7695598602294922 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:04:42.340899
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:04:52.192524
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7618913650512695 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:05:03.874112
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75517230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:05:32.506328
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7625570297241211 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:05:42.487762
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755449f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755449f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755449f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:05:52.406518
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7649438381195068 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:06:03.237805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:06:32.717948
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b76d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.763007640838623 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:06:42.624081
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:06:52.684200
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7604002952575684 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:07:04.451976
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:07:32.859867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7610211372375488 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:07:42.874316
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551aa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551aa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551aa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:07:52.895576
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755395b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7706477642059326 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:08:03.785582
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754af990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:08:33.241562
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755157b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7627546787261963 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:08:43.178408
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:08:53.138921
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755236d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7659115791320801 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:09:03.681930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75530a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:09:32.405432
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754945f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7683031558990479 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:09:42.396980
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:09:52.315022
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7682905197143555 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:10:03.282323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:10:32.530016
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a25b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7646200656890869 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:10:42.583900
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75549a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:10:52.475424
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7670192718505859 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:11:04.042017
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75554ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:11:32.707860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755426f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7637665271759033 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:11:42.753566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754da1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:11:52.666020
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7678442001342773 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:12:03.427866
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754989d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754989d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754989d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:12:32.924338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a47f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7628543376922607 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:12:42.878014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548cad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548cad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548cad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:12:52.885034
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7638556957244873 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:13:04.531710
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ac8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:13:33.173433
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558b6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7681026458740234 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:13:43.156074
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:13:53.091703
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c57d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7626276016235352 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:14:02.885546
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754be9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:14:32.299073
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7666330337524414 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:14:42.405913
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75535a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:14:52.288800
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7671551704406738 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:15:03.783245
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:15:32.532884
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7694094181060791 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:15:42.524983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75546a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:15:52.559017
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7740588188171387 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:16:03.576573
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:16:32.793131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7673304080963135 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:16:42.806652
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:16:52.765366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754986f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7602629661560059 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:17:04.172905
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75581a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:17:33.099049
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7661280632019043 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:17:43.012627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75563a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:17:53.040675
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.76263427734375 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:18:02.994749
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754afa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754afa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754afa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:18:32.268308
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755687d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7673909664154053 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:18:42.234784
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75570990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:18:52.208419
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7679224014282227 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:19:03.850033
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d3930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d3930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d3930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:19:32.491417
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7623085975646973 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:19:42.416287
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755079d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755079d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755079d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:19:52.414177
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755647d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7721827030181885 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:20:03.312931
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755129f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755129f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755129f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:20:32.625275
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7669625282287598 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:20:42.638738
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:20:52.659307
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7646384239196777 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:21:04.275071
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75517a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:21:32.909908
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7654082775115967 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:21:42.857867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75529990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:21:52.864227
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7627284526824951 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:22:03.720002
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755099b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755099b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755099b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:22:33.106809
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x764a8fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7635247707366943 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:22:43.126798
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:22:53.073118
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e9710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7658994197845459 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:23:03.783419
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:23:32.303919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7625322341918945 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:23:42.289661
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:23:52.296829
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.771359920501709 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:24:03.136552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:24:32.494672
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7658157348632812 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:24:42.542820
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75498250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:24:52.524105
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7701010704040527 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:25:03.960168
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75541ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:25:32.764013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7610647678375244 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:25:42.739260
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75529af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:25:52.727392
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7718822956085205 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:26:03.544252
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:26:32.942195
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e76f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7668819427490234 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:26:42.939613
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:26:53.023840
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7706501483917236 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:27:03.518264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75522990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:27:32.220020
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7673642635345459 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:27:42.351841
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ba970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:27:52.234127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7654323577880859 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:28:03.061035
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c6650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:28:32.382996
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7672886848449707 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:28:42.455965
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75523b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:28:52.403653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755155d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7713737487792969 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:29:04.258108
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:29:32.757904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7727766036987305 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:29:42.659743
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755209b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755209b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755209b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:29:52.669009
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7726840972900391 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:30:03.571959
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d0a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:30:32.879629
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.771364688873291 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:30:43.073378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:30:52.899986
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.767815113067627 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:31:04.447403
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:31:33.143394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7622275352478027 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:31:43.142839
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:31:53.248701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755266f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7638247013092041 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:32:03.099804
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:32:32.479295
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7616531848907471 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:32:42.477097
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75498a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:32:52.492414
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.764819860458374 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:33:04.183652
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ab990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:33:32.730384
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7674264907836914 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:33:42.729733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75543a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:33:52.725482
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755277d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7673165798187256 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:34:03.750670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75499ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:34:32.916737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7658653259277344 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:34:42.980681
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75502a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:34:52.952222
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7662122249603271 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:35:04.889226
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551d930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:35:33.188104
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7649af70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7606661319732666 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:35:43.198219
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:35:53.141099
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7632389068603516 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:36:03.058819
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:36:32.345577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.76564621925354 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:36:42.374005
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754daa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754daa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754daa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:36:52.496882
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75589750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7679524421691895 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:37:04.284471
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ff9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:37:32.726201
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7648880481719971 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:37:42.747043
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c2930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:37:52.737152
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7635965347290039 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:38:03.781130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:38:33.080002
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755126d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7675001621246338 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:38:42.957450
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755329d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755329d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755329d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:38:52.906350
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7635643482208252 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:39:04.116085
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:39:33.221117
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7663106918334961 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:39:43.147781
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e5990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:39:53.090383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7675273418426514 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:40:02.954900
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:40:32.307897
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7658035755157471 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:40:42.283958
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755408f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755408f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755408f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:40:52.274835
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7755138874053955 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:41:03.842201
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75556290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:41:32.537819
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7705078125 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:41:42.544977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:41:52.630266
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755586d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7614254951477051 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:42:03.508369
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:42:32.881609
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7724754810333252 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:42:42.853593
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b28d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b28d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b28d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:42:52.847975
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7647449970245361 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:43:04.653568
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d8a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:43:33.221609
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.762260913848877 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:43:43.112903
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755599f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755599f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755599f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:43:53.083400
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7694299221038818 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:44:02.874351
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75510a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:44:32.287448
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7666969299316406 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:44:42.428410
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aeab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aeab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aeab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:44:52.268964
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7689735889434814 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:45:04.075693
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75494a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:45:32.472017
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755186f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7632160186767578 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:45:42.497158
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:45:52.470029
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7673976421356201 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:46:03.442489
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75567a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:46:32.675945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7697782516479492 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:46:42.664727
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:46:52.656313
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755475d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7655344009399414 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:47:04.454577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:47:32.991581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7679290771484375 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:47:42.936059
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75568ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:47:52.907103
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a36f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7658379077911377 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:48:03.795222
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75558a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:48:33.171594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7660279273986816 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:48:43.139595
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7615e790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7615e790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7615e790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:48:53.151951
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75ee1830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7651667594909668 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:49:03.785722
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75521ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:49:32.416156
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a76d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7699284553527832 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:49:42.396927
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75509930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:49:52.318056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7655723094940186 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:50:03.251646
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:50:32.541470
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7670536041259766 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:50:42.569656
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550b5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:50:52.671487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7660157680511475 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:51:04.182829
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:51:32.963194
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7682337760925293 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:51:42.912412
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:51:52.932322
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7717688083648682 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:52:03.858123
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75580950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:52:33.206519
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755336d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7660531997680664 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:52:43.136506
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:52:53.182890
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7653865814208984 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:53:03.729818
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75487a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:53:32.506132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7696456909179688 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:53:42.550915
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75536990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:53:52.463810
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7731192111968994 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:54:03.316778
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:54:32.827294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e46f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7622137069702148 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:54:42.659616
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75492a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:54:52.654192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7722158432006836 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:55:04.013799
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:55:32.948430
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7679831981658936 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:55:42.878977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b8930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:55:52.862055
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755277b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7688913345336914 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:56:03.699390
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75561970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:56:33.134184
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755307b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.767768383026123 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:56:43.049299
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755479f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755479f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755479f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:56:53.048502
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7674968242645264 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:57:03.673965
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75558a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:57:32.296150
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558f5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7694659233093262 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:57:42.274938
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:57:52.309398
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556c5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.773313045501709 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:59:03.861474
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:59:32.867931
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7674129009246826 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 14:59:42.722043
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755209f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755209f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755209f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 14:59:52.735916
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7668893337249756 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:00:03.597565
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755379d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755379d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755379d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:00:33.002387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b56f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7677950859069824 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:00:42.938541
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75516ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:00:52.908974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.761737585067749 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:01:04.305109
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75f77e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f77e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f77e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:01:33.313233
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7637133598327637 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:01:43.131121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:01:53.110431
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.764319658279419 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:02:03.043798
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75532a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:02:32.313979
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754936b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.769080400466919 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:02:42.310723
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:02:52.279644
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7656416893005371 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:03:04.093139
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550e590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:03:32.498936
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7641317844390869 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:03:42.609510
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75573a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75573a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75573a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:03:52.510772
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7745983600616455 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:04:03.301149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:04:32.743537
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7652487754821777 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:04:42.745901
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:04:52.746136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7693126201629639 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:05:04.562004
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75556ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:05:32.956779
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755806d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7660412788391113 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:05:43.065879
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75539970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:05:52.960919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7666959762573242 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:06:02.866626
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75583a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:06:32.197600
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754986b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7652909755706787 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:06:42.148134
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754afa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754afa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754afa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:06:52.170096
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7629730701446533 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:07:03.932078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75572a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:07:32.378225
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7721855640411377 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:07:42.380675
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75506af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:07:52.383468
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75585710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7766854763031006 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:08:03.424855
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f1a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f1a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f1a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:08:32.615608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7676222324371338 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:08:42.642487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557e5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:08:52.622328
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7689559459686279 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:09:04.110794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754caa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754caa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754caa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:09:32.990120
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755137d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7673671245574951 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:09:42.956817
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754feab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754feab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754feab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:09:52.995945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8013734817504883 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:10:02.852088
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:10:32.233627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.774038553237915 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:10:42.219263
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:10:52.180298
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755806f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7664272785186768 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:11:04.106015
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75515a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75515a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75515a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:11:32.440741
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7683835029602051 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:11:42.471777
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:11:52.340180
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7660472393035889 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:12:03.186670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:12:32.654175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7691092491149902 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:12:42.533068
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75520a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:12:52.528942
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.774155855178833 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:13:03.982005
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75532930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:13:32.769737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b76f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7718236446380615 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:13:42.746243
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75512ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:13:52.801920
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7664315700531006 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:14:03.639313
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:14:33.104212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c26d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7646200656890869 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:14:43.016685
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75562a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:14:52.990688
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7650964260101318 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:15:03.665783
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ba9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:15:32.199405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7662842273712158 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:15:42.220336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:15:52.165937
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75573550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7653708457946777 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:16:03.025333
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75584a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:16:32.468812
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7670235633850098 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:16:42.392088
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:16:52.460268
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7687695026397705 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:17:04.332689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c4ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:17:32.668107
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ae5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7651698589324951 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:17:42.670010
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:17:52.705510
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ceb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7731974124908447 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:18:03.643952
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755549d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755549d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755549d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:18:32.939672
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755316f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7675862312316895 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:18:42.913510
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75545a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:18:52.986412
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7674267292022705 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:19:03.372574
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:19:32.281390
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7624480724334717 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:19:42.216286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:19:52.183041
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7644073963165283 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:20:03.078504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:20:32.401807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755876f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7699339389801025 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:20:42.446442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75509a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:20:52.407901
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7745416164398193 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:21:04.056181
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75563970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:21:32.644062
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7678451538085938 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:21:42.666272
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:21:52.648182
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7734463214874268 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:22:03.488053
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550bab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550bab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550bab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:22:32.844856
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755257b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7660272121429443 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:22:42.853368
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:22:52.880950
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7663016319274902 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:23:04.565515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75494990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:23:33.090249
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7647686004638672 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:23:43.156634
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:23:53.056039
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7675909996032715 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:24:03.050716
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75535930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:24:32.290523
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755186b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7690403461456299 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:24:42.269072
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75545a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:24:52.240341
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7680237293243408 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:25:03.930706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:25:32.531719
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7675082683563232 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:25:42.503175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754959b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754959b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754959b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:25:52.515093
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755786f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.770460844039917 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:26:03.549404
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754baa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754baa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754baa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:26:32.742382
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7673840522766113 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:26:42.758390
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755399d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755399d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755399d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:26:52.744728
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7728521823883057 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:27:04.344319
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aa9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:27:32.986720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755646b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7678847312927246 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:27:42.981936
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75512a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:27:52.935154
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7677536010742188 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:28:03.873660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:28:33.185004
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7748591899871826 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:28:43.203728
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:28:53.180127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a76b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7679798603057861 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:29:03.840016
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75547970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:29:32.384533
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7658894062042236 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:29:42.405270
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:29:52.461007
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7683398723602295 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:30:03.365038
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553e950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:30:32.731802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754945b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.771981954574585 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:30:42.669042
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:30:52.670504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7720751762390137 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:31:04.076335
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755815b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755815b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755815b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:31:32.992488
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7683553695678711 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:31:42.902102
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:31:53.015490
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755447b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.765455961227417 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:32:02.804127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c4ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:32:32.188690
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7642345428466797 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:32:42.278974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:32:52.182572
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c55f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.780062198638916 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:33:03.836535
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:33:32.403101
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.769416093826294 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:33:42.528872
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554da70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554da70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554da70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:33:52.408280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7643887996673584 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:34:03.313791
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75517a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:34:32.623023
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c06d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7704899311065674 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:34:42.642631
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:34:52.662998
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75591610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7758827209472656 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:35:04.385680
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:35:32.878005
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552f770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7705287933349609 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:35:42.898132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:35:52.909213
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755045b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7637548446655273 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:36:03.807129
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557f210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:36:33.176769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7661750316619873 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:36:43.232128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:36:53.194213
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755596d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7745380401611328 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:37:03.998120
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755589d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755589d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755589d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:37:32.460078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75591770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7745728492736816 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:37:42.494852
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75499970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:37:52.387370
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7775228023529053 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:38:03.383866
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75574a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:38:32.749877
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7790439128875732 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:38:42.622929
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75504970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:38:52.546762
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d46f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7643654346466064 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:39:04.168941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:39:32.800084
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7649984359741211 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:39:42.772456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75515990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75515990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75515990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:39:52.779213
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7667849063873291 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:40:03.777142
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75509a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:40:33.097620
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7651426792144775 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:40:43.017917
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75543a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:40:53.023037
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7753808498382568 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:41:03.791572
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75555990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:41:32.315052
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7683210372924805 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:41:42.242487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:41:52.306627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755477d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7724602222442627 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:42:03.228727
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:42:32.518724
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7677202224731445 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:42:42.526517
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:42:52.527442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a06f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7641499042510986 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:43:04.280691
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bda70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bda70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bda70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:43:32.744178
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7733874320983887 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:43:42.795796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75493930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:43:52.805039
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d3550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7647702693939209 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:44:03.698945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:44:33.021631
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755446f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7680542469024658 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:44:43.028962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75530ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:44:53.083933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7636442184448242 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:45:03.601626
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e3ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:45:32.296580
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7653250694274902 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:45:42.389583
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c5a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:45:52.332028
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7731320858001709 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:46:03.291521
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:46:32.549385
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7635998725891113 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:46:42.519905
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:46:52.533012
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755206f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7642326354980469 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:47:04.295347
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:47:32.805465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755836b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7687032222747803 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:47:42.760324
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754de9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:47:52.784881
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7704863548278809 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:48:03.669081
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ecab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ecab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ecab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:48:33.040420
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7658312320709229 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:48:43.004162
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ef5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:48:52.993116
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75591730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.768308162689209 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:49:03.405993
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75560a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:49:32.191725
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7779626846313477 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:49:42.257418
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75563a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:49:52.201336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7650854587554932 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:50:03.261509
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cba90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cba90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cba90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:50:32.522764
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7701828479766846 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:50:42.412127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75499a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:50:52.455402
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7751443386077881 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:51:03.955985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75552a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:51:32.730045
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7700207233428955 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:51:42.670351
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755238d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755238d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755238d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:51:52.698073
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7660746574401855 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:52:03.647870
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:52:32.942926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7686638832092285 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:52:42.956668
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75b0b7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b0b7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b0b7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:52:52.956435
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c45d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7764062881469727 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:53:03.416556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:53:32.169062
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755854d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7725903987884521 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:53:42.171104
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:53:52.153188
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755445b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.763221025466919 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:54:03.014542
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75566a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:54:32.331367
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7702584266662598 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:54:42.476878
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e7a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:54:52.329350
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7650187015533447 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:55:03.713010
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75503a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:55:32.580579
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755886f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7691867351531982 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:55:42.557780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754999f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754999f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754999f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:55:52.549312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7796647548675537 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:56:03.429839
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:56:32.779578
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7729475498199463 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:56:42.760069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75569a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:56:52.791821
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7662379741668701 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:57:04.777547
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75579a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:57:33.010408
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755745f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7659914493560791 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:57:43.060730
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:57:53.018599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755385f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7644798755645752 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:59:03.677527
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755699b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755699b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755699b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:59:32.777812
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7719273567199707 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 15:59:42.734910
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 15:59:52.732689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7741351127624512 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:00:03.711775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75530a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:00:33.011791
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7749805450439453 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:00:42.979571
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755225b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755225b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755225b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:00:52.925436
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7713453769683838 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:01:04.480473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75557ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:01:33.172110
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7712454795837402 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:01:43.322903
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754de9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:01:53.221536
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7731215953826904 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:02:03.032397
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755839f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755839f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755839f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:02:32.409172
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755746d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7697672843933105 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:02:42.403865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75529a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:02:52.389240
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c66f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.766777515411377 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:03:04.141702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75518a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:03:32.575397
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7725076675415039 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:03:42.616107
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75586a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:03:52.696885
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7673463821411133 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:04:03.588591
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:04:32.916839
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755355f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7743113040924072 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:04:42.912604
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f78d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f78d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f78d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:04:53.004379
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755296f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7691764831542969 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:05:03.523910
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75527970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75527970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75527970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:05:32.281117
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.773414134979248 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:05:42.225413
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755038b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755038b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755038b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:05:52.279369
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558d670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7689638137817383 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:06:03.148157
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755609f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755609f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755609f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:06:32.553416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7708070278167725 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:06:42.501181
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755059b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755059b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755059b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:06:52.530189
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d87d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7726526260375977 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:07:04.134542
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:07:32.828970
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.770376443862915 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:07:42.860041
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75553a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:07:52.704628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75587670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7697210311889648 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:08:03.454659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c8570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:08:32.922734
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7684366703033447 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:08:42.908369
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755209f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755209f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755209f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:08:52.981726
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.771294355392456 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:09:03.458213
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:09:32.172354
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755096d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7719705104827881 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:09:42.216091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:09:52.275741
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7689707279205322 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:10:03.185507
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:10:32.659913
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7687027454376221 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:10:42.559336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754949d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754949d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754949d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:10:52.656353
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755246f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7708468437194824 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:11:04.142663
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75556a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:11:32.979396
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.767838716506958 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:11:42.924207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:11:52.852765
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754946f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7644181251525879 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:12:03.830221
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75516ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:12:33.068302
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7697701454162598 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:12:43.119084
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75546ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:12:53.085456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7682945728302002 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:13:03.602665
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:13:32.332394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7663018703460693 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:13:42.371775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549fab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549fab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549fab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:13:52.329458
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7704105377197266 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:14:03.253979
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:14:32.551528
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7667474746704102 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:14:42.572820
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:14:52.559120
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.771813154220581 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:15:04.269797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75532970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:15:32.856595
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7698469161987305 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:15:42.834204
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75505950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75505950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75505950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:15:52.771504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755316b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7790830135345459 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:16:03.767646
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75571a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:16:33.016904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7660260200500488 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:16:43.023123
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:16:53.087910
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7643742561340332 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:17:03.742062
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:17:32.305568
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7746832370758057 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:17:42.299706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75542a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:17:52.283358
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7649779319763184 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:18:03.252587
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:18:32.484964
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7681896686553955 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:18:42.489354
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75519950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:18:52.418416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7647824287414551 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:19:04.239853
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75536970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:19:32.774774
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755716f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7750732898712158 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:19:42.650356
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75583970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:19:52.732988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7729833126068115 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:20:03.592553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:20:32.914947
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7648599147796631 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:20:42.996200
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:20:52.909089
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7681300640106201 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:21:04.449935
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:21:33.136550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7667386531829834 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:21:43.153097
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:21:53.135579
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7755889892578125 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:22:02.994038
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755619f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755619f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755619f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:22:32.337300
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7750828266143799 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:22:42.411281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:22:52.366889
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7765688896179199 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:23:03.732640
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:23:32.654645
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7694616317749023 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:23:42.583356
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:23:52.548393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7737481594085693 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:24:03.428835
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:24:32.756277
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f4a710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7714412212371826 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:24:42.885782
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75565a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:24:52.743193
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755387b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7679977416992188 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:25:04.514422
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75555a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:25:33.081913
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7703542709350586 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:25:43.048781
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75536930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:25:52.987926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755615b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7748312950134277 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:26:02.876449
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b0a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:26:32.222986
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7734739780426025 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:26:42.236241
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:26:52.169935
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7674059867858887 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:27:03.668167
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:27:32.399574
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754986b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7706036567687988 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:27:42.556989
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75530a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:27:52.420985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.777928352355957 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:28:03.343125
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75503a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:28:32.631945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7764101028442383 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:28:42.647141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:28:52.621214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7682194709777832 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:29:04.370097
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:29:32.895413
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755157d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7726194858551025 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:29:43.023925
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755289f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755289f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755289f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:29:53.007388
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558d710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7739717960357666 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:30:02.872136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:30:32.251705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7696080207824707 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:30:42.266353
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556aab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556aab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556aab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:30:52.197101
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7646260261535645 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:31:03.988309
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75543890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:31:32.468515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7718615531921387 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:31:42.414773
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554caf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554caf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554caf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:31:52.512622
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755277b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7700622081756592 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:32:03.333827
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754de8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:32:32.729569
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7668881416320801 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:32:42.635244
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cf9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:32:52.703865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558e6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7672750949859619 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:33:04.484602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:33:32.904170
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7708022594451904 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:33:42.914465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d5990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:33:52.903892
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7707669734954834 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:34:03.807094
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75488a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75488a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75488a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:34:33.129992
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7755939960479736 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:34:43.100190
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:34:53.140670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e75f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7696352005004883 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:35:03.620938
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:35:32.371877
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7727811336517334 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:35:42.473063
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75506a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:35:52.410737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7732563018798828 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:36:03.272335
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:36:32.664851
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7705104351043701 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:36:42.659551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:36:52.589208
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755175b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7677285671234131 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:37:04.150035
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c7a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:37:32.788796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558b730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.775503396987915 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:37:42.770708
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754df9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:37:52.779099
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7658662796020508 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:38:03.799237
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:38:33.159479
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7701663970947266 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:38:43.065400
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75520af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:38:53.143368
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d86d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7674107551574707 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:39:03.871114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75518a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:39:32.310845
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755427d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7657525539398193 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:39:42.397131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ea8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:39:52.364179
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7767937183380127 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:40:03.337131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75576990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:40:32.599487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7708730697631836 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:40:42.549080
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:40:52.562471
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7739765644073486 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:41:04.285028
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75491510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75491510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75491510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:41:32.837052
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75480e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7672905921936035 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:41:42.825509
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557e8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:41:52.839785
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7723274230957031 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:42:03.781216
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:42:33.094719
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7648489475250244 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:42:43.053699
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75519990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:42:53.035973
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7617cf90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7751541137695312 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:43:03.570728
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557bab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557bab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557bab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:43:32.241705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7652678489685059 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:43:42.228794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x76500f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76500f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76500f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:43:52.277785
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755285f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7700273990631104 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:44:02.957685
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cb950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:44:32.473666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7699005603790283 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:44:42.536374
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ef9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:44:52.483753
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755286f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7761111259460449 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:45:04.042062
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b5530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:45:32.701746
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755346d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.76560378074646 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:45:42.674003
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75560230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:45:52.654492
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7697093486785889 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:46:03.561871
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754daa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754daa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754daa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:46:32.908021
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7727015018463135 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:46:43.035034
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551fad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551fad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551fad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:46:52.827792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7705276012420654 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:47:04.487854
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:47:33.098123
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7672994136810303 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:47:43.077120
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754acaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754acaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754acaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:47:53.038216
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755816f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7876718044281006 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:48:02.975996
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:48:32.239028
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7676079273223877 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:48:42.259650
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:48:52.220049
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754956d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.772711992263794 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:49:03.727697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:49:32.455000
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7657175064086914 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:49:42.504506
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:49:52.403884
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7845451831817627 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:50:03.277386
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:50:32.725955
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7704417705535889 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:50:42.614487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75510a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:50:52.671541
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755085d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7654190063476562 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:51:04.164875
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75548af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:51:32.894704
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7738516330718994 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:51:42.908618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:51:52.922248
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7738645076751709 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:52:03.814042
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:52:33.087112
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7666714191436768 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:52:43.162888
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75567a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:52:53.082733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7693789005279541 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:53:03.347553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75532a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:53:32.340493
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7695503234863281 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:53:42.316573
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755818f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755818f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755818f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:53:52.345869
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7779428958892822 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:54:03.248768
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75564a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:54:32.540626
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7694213390350342 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:54:42.617367
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75572ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:54:52.518835
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f66f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7724161148071289 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:55:03.893733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:55:32.751750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755205d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7738444805145264 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:55:42.824923
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75548170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:55:52.730144
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7746601104736328 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:56:03.677649
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:56:33.103713
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7677078247070312 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:56:43.085049
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c2890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:56:52.995733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.769758939743042 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:57:03.570610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755359d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755359d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755359d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:57:32.227501
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7684915065765381 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:57:42.256320
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:57:52.186372
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7675783634185791 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:59:03.770463
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755781d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755781d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755781d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:59:32.863710
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c87d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7696518898010254 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 16:59:42.829561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 16:59:52.858353
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7788224220275879 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:00:03.748825
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755579b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755579b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755579b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:00:33.096181
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7723531723022461 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:00:43.105918
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ada30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ada30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ada30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:00:53.099158
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7725315093994141 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:01:03.755265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75586a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:01:32.350930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.767695426940918 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:01:42.324021
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557d1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:01:52.227694
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7709705829620361 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:02:03.055125
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ebad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ebad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ebad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:02:32.425478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7688889503479004 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:02:42.561869
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:02:52.566566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755705f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7738463878631592 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:03:03.928338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:03:32.775759
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755746d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7720651626586914 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:03:42.803390
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b2af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:03:52.881964
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7777266502380371 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:04:03.762878
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:04:33.107375
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7681221961975098 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:04:43.115740
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f2a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:04:53.129680
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7755937576293945 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:05:03.657653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:05:32.313587
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b45d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7661187648773193 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:05:42.417054
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75551a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:05:52.331168
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755106f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.765671968460083 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:06:03.231320
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:06:32.528801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7753360271453857 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:06:42.529741
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75517a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:06:52.520648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7678284645080566 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:07:04.059160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c1ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:07:32.898516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7744739055633545 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:07:42.746572
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755669b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755669b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755669b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:07:52.742363
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a45f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7665624618530273 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:08:03.749962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75524a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:08:32.981224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7710411548614502 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:08:43.039092
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75546ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:08:52.975404
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7721297740936279 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:09:03.381714
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cda70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cda70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cda70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:09:32.298043
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755315d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7705881595611572 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:09:42.286130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aa930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:09:52.201600
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7720081806182861 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:10:03.114411
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75495a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:10:32.481696
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.775921106338501 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:10:42.393212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:10:52.416357
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7688717842102051 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:11:04.195586
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755499f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755499f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755499f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:11:32.636594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7789256572723389 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:11:42.715847
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75ef5790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75ef5790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75ef5790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:11:52.650460
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7718086242675781 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:12:03.514736
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bf970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:12:32.962090
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7711751461029053 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:12:42.819387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:12:52.843619
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7681221961975098 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:13:04.495286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:13:33.206481
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7679071426391602 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:13:43.091756
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:13:53.104096
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7768371105194092 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:14:02.954414
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:14:32.374566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7672836780548096 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:14:42.276450
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:14:52.332573
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fa18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7684085369110107 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:15:03.915923
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75490990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:15:32.471151
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7727329730987549 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:15:42.580326
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ce9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:15:52.514980
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f46d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7670602798461914 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:16:03.395534
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552aad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552aad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552aad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:16:32.831217
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7708539962768555 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:16:42.886162
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755639f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755639f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755639f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:16:52.868846
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7679615020751953 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:17:04.685136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f0ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f0ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f0ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:17:33.090460
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755347f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7702341079711914 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:17:43.114922
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:17:53.080392
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f27f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7807595729827881 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:18:03.073060
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75491a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75491a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75491a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:18:32.271576
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.774613618850708 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:18:42.272359
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755065f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755065f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755065f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:18:52.267626
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7712714672088623 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:19:03.567478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75547a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:19:32.521597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558c6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7702758312225342 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:19:42.551182
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:19:52.566716
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7739295959472656 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:20:03.549359
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75540a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:20:32.782170
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.771801233291626 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:20:42.858829
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eb270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:20:52.779578
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7810919284820557 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:21:04.495497
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:21:33.029541
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e05d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7670552730560303 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:21:43.045415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:21:53.084942
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d66f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7739932537078857 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:22:02.859842
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75586910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:22:32.412026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75590710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.776118278503418 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:22:42.307094
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ee9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:22:52.386513
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.769162654876709 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:23:04.111261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:23:32.641502
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7686316967010498 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:23:42.600415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754abad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754abad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754abad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:23:52.624623
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755615b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7781779766082764 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:24:03.463686
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75513ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:24:32.848044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7691457271575928 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:24:42.878637
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754909b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754909b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754909b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:24:52.815503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7753009796142578 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:25:04.394956
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:25:33.096630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7686233520507812 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:25:42.986177
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aaa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aaa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aaa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:25:53.029770
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.77158522605896 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:26:02.911673
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75516a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:26:32.210945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7777988910675049 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:26:42.318352
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75505950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75505950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75505950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:26:52.287160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7673099040985107 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:27:03.273162
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75fbd2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fbd2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fbd2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:27:32.656800
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558b6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7683870792388916 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:27:42.555370
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755481b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755481b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755481b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:27:52.514171
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7730309963226318 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:28:03.435668
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:28:32.747993
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7734827995300293 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:28:42.716469
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:28:52.731729
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7739152908325195 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:29:04.265390
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:29:33.062962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755046d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7658159732818604 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:29:43.013506
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:29:53.088887
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.775672435760498 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:30:02.934439
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:30:32.270775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7745656967163086 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:30:42.285932
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75527a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75527a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75527a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:30:52.296941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7771248817443848 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:31:04.002115
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:31:32.526088
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7684135437011719 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:31:42.514439
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75566a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:31:52.460647
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7728855609893799 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:32:03.314666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553b590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:32:32.798484
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7691950798034668 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:32:42.665188
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75513a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:32:52.680179
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7699241638183594 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:33:04.322136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:33:32.859932
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8050377368927002 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:33:42.908791
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75502a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:33:52.917322
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.785407543182373 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:34:03.815423
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:34:33.114100
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7678923606872559 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:34:43.167871
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75528990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:34:53.166913
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7685432434082031 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:35:03.572639
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:35:32.367256
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7683994770050049 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:35:42.465571
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755388f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755388f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755388f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:35:52.401996
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c37d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7830204963684082 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:36:03.287550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:36:32.624793
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755335d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7685041427612305 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:36:42.621127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:36:52.561597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7759180068969727 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:37:04.045290
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:37:32.906264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7702465057373047 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:37:42.990177
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75513a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:37:52.861359
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7763504981994629 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:38:03.831665
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75541a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:38:33.153668
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7750203609466553 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:38:43.052750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:38:53.118098
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75515730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7721927165985107 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:39:03.833050
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75525a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:39:32.359849
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7738714218139648 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:39:42.498963
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:39:52.494720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d76d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7756509780883789 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:40:03.443711
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bbad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bbad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bbad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:40:32.698069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7704784870147705 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:40:42.721673
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:40:52.706922
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552f6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7793819904327393 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:41:04.265882
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:41:32.961100
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7720310688018799 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:41:42.918847
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c1a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:41:52.890310
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7724173069000244 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:42:03.747052
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:42:33.122891
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c16b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7759127616882324 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:42:43.165236
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75527990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75527990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75527990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:42:53.160585
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7748498916625977 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:43:03.588651
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c1950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:43:32.441543
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f06f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7708659172058105 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:43:42.421668
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:43:52.349724
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7692687511444092 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:44:03.195774
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:44:32.698587
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.773975133895874 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:44:42.578832
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755418f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755418f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755418f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:44:52.539704
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7747750282287598 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:45:04.223398
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:45:32.781579
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754956f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7722313404083252 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:45:42.857955
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:45:52.748317
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755857b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.777163028717041 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:46:03.588810
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75545a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:46:32.965446
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754917b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7738852500915527 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:46:42.954908
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75508a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:46:52.922802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7747821807861328 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:47:04.525612
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:47:33.170274
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7671396732330322 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:47:43.170387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755279f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755279f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755279f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:47:53.128859
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7731623649597168 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:48:02.920653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:48:32.411754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7697253227233887 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:48:42.374689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75586a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:48:52.309116
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c26f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7689294815063477 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:49:03.595158
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a95d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a95d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a95d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:49:32.652484
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755856d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7720322608947754 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:49:42.571485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:49:52.646840
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7699768543243408 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:50:03.653866
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75562a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:50:32.994218
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75590770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7677180767059326 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:50:42.876477
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:50:52.854692
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.770688533782959 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:51:04.438442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75556a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:51:33.140167
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.780259370803833 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:51:43.074569
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755058f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755058f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755058f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:51:53.040855
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7876625061035156 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:52:03.037473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75533990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:52:32.306662
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7757253646850586 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:52:42.245012
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75578970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:52:52.226495
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755356d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7724366188049316 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:53:03.796174
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:53:32.420767
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7739729881286621 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:53:42.462640
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75546a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:53:52.465146
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7743546962738037 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:54:03.415509
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:54:32.670581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755567b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7712604999542236 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:54:42.695541
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75493a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:54:52.652023
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755687b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7695479393005371 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:55:04.491178
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:55:32.958618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7743773460388184 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:55:42.896743
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754948b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754948b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754948b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:55:52.866270
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7863435745239258 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:56:03.898261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:56:33.067647
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7698688507080078 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:56:43.081651
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755018f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755018f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755018f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:56:53.253792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7772040367126465 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:57:03.454378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75483a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75483a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75483a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:57:32.504411
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.769453763961792 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:57:42.460360
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75f21830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f21830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f21830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:57:52.519090
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7861180305480957 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:59:04.115466
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75518a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:59:32.972963
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.770197868347168 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 17:59:43.070989
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 17:59:53.055364
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7732136249542236 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:00:02.859123
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548ba90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ba90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ba90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:00:32.273359
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7736599445343018 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:00:42.242755
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c3a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:00:52.264540
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7670238018035889 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:01:04.095928
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:01:32.517414
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755155f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7721061706542969 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:01:42.491819
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:01:52.509597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7726047039031982 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:02:03.423212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755519f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755519f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755519f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:02:32.858944
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7708773612976074 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:02:42.740802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75551ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:02:52.819117
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755346d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7678120136260986 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:03:04.247107
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:03:33.141773
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7667474746704102 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:03:43.096554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755268d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755268d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755268d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:03:53.065682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755225f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7814562320709229 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:04:02.876190
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c9af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:04:32.241357
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7724940776824951 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:04:42.263858
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:04:52.227648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7678337097167969 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:05:03.783307
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ea9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:05:32.517745
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7672741413116455 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:05:42.558260
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:05:52.397321
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7721872329711914 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:06:03.204654
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x76486f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76486f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76486f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:06:32.616452
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7699003219604492 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:06:42.614309
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75570950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:06:52.625702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558c770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7714614868164062 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:07:04.285420
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75554950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:07:32.769637
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755175d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7707352638244629 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:07:42.831058
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d0ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:07:52.966159
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7742321491241455 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:08:02.863165
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75559570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:08:32.171426
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d3730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7733190059661865 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:08:42.228629
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75577970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:08:52.180239
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755256b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7732539176940918 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:09:03.760239
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:09:32.434632
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f56f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7783029079437256 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:09:42.362320
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755358f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755358f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755358f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:09:52.381282
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7728080749511719 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:10:03.300497
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:10:32.705670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755765d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7694098949432373 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:10:42.621714
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755468d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755468d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755468d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:10:52.599887
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7677595615386963 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:11:04.247795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75534a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:11:32.841004
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7804701328277588 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:11:42.852849
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75536a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:11:52.795786
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.773313045501709 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:12:03.814293
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75574a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:12:33.000405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7734823226928711 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:12:43.007083
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754efa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754efa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754efa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:12:53.003324
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7698514461517334 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:13:03.440581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:13:32.236229
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7714052200317383 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:13:42.344954
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:13:52.241028
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7781572341918945 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:14:03.163485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75522a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:14:32.473053
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7701823711395264 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:14:42.482212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:14:52.471238
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7750837802886963 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:15:03.997365
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75501ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:15:32.705667
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7680754661560059 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:15:42.748779
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75552930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:15:52.670185
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7732048034667969 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:16:03.568668
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75547af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:16:32.998572
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7740404605865479 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:16:42.914296
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:16:53.023140
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755746b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7722072601318359 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:17:03.481404
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75561a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:17:32.253575
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755385d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7700598239898682 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:17:42.242073
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:17:52.262089
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7697596549987793 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:18:03.180607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:18:32.571838
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7770473957061768 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:18:42.652781
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75508a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:18:52.547650
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7744290828704834 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:19:04.060039
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75576a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:19:32.862493
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.779139518737793 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:19:42.780074
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755759b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755759b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755759b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:19:52.794704
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7735443115234375 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:20:03.714559
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:20:32.982734
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7681899070739746 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:20:43.063555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755679d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755679d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755679d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:20:53.009072
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7677364349365234 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:21:03.395739
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754daa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754daa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754daa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:21:32.285981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755846f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7742726802825928 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:21:42.270015
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75545950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:21:52.335489
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7675375938415527 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:22:03.184744
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75524a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:22:32.652128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7765302658081055 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:22:42.520288
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754988f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754988f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754988f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:22:52.503111
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7768962383270264 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:23:04.101617
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:23:32.774903
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c66f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7757167816162109 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:23:42.877423
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755149b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755149b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755149b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:23:52.818993
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b75d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8629920482635498 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:24:03.532540
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fa950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:24:33.041571
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755036d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.771597146987915 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:24:43.057775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75570930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:24:53.058886
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.775496244430542 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:25:03.492170
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:25:32.242901
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f0790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7697291374206543 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:25:42.261409
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:25:52.366026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7705585956573486 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:26:03.285995
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:26:32.558024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75a1dcb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7708301544189453 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:26:42.568689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75509990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:26:52.547146
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.773646354675293 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:27:03.852066
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75552950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:27:32.916430
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558d710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7809438705444336 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:27:42.798722
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a0930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:27:52.807717
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755786d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7689938545227051 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:28:03.667800
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75564a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:28:33.018086
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7701349258422852 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:28:43.029888
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:28:53.103152
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7708065509796143 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:29:03.807842
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75487a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:29:32.416610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7679166793823242 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:29:42.351225
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bfa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bfa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bfa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:29:52.468389
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7784597873687744 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:30:03.414769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75567ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:30:32.647837
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7748363018035889 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:30:42.714631
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:30:52.665398
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7739560604095459 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:31:04.119384
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754feab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754feab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754feab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:31:32.886336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7839488983154297 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:31:42.889376
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75532910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:31:52.916096
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7774438858032227 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:32:03.720470
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75561990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:32:33.103393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7714433670043945 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:32:43.130121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fa5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:32:53.076901
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7721788883209229 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:33:03.610807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:33:32.270040
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755646d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7732818126678467 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:33:42.406165
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:33:52.332342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7697963714599609 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:34:03.174396
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75494a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:34:32.551734
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7842674255371094 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:34:42.559984
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75496910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:34:52.521836
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7903861999511719 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:35:04.197845
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75581a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:35:32.749269
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7703118324279785 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:35:42.902327
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75540a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:35:52.760510
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7758877277374268 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:36:03.606049
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75557a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:36:33.002371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7733008861541748 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:36:42.988751
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:36:53.110756
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7713515758514404 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:37:03.586352
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f6b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:37:32.315515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7714104652404785 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:37:42.319358
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:37:52.415616
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7746169567108154 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:38:03.196669
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:38:32.633312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7789359092712402 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:38:42.610520
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:38:52.628950
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7714262008666992 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:39:04.141694
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:39:32.861776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7811217308044434 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:39:42.878786
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75574a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:39:52.854114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7794332504272461 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:40:03.715915
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75f56990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f56990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f56990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:40:33.036699
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754927b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.776623010635376 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:40:43.050582
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75525ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:40:53.025272
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7687647342681885 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:41:03.790171
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75538a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:41:32.334490
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.776564359664917 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:41:42.230081
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:41:52.272065
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.770075798034668 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:42:03.109481
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755839f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755839f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755839f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:42:32.515457
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7717108726501465 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:42:42.510461
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:42:52.481834
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755157d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.771373987197876 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:43:04.220437
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550aaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550aaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550aaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:43:32.744451
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7701950073242188 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:43:42.751269
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754afa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754afa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754afa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:43:52.709929
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755566d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.776911735534668 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:44:03.663223
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:44:32.963818
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7740135192871094 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:44:42.963220
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:44:53.001091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f38390>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7875478267669678 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:45:03.778666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75506a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:45:32.348077
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7781157493591309 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:45:42.199795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:45:52.206715
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7684149742126465 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:46:03.115355
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754da9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:46:32.399532
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755677f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7853987216949463 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:46:42.438888
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:46:52.400632
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7729737758636475 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:47:04.137960
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e8a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:47:32.681490
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7711586952209473 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:47:42.640380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d0610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:47:52.617741
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7718997001647949 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:48:03.467604
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:48:32.914749
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7779881954193115 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:48:42.903068
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:48:52.948686
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7717993259429932 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:49:03.899178
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754928f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754928f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754928f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:49:32.191304
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755486f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7686254978179932 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:49:42.209097
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:49:52.213440
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.779245138168335 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:50:03.045938
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550a210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:50:32.492206
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7799842357635498 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:50:42.408438
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:50:52.402019
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7732236385345459 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:51:04.226703
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:51:32.745129
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7792155742645264 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:51:42.586647
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:51:52.643467
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7808685302734375 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:52:03.567720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75554a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:52:32.826228
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755886d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7738943099975586 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:52:42.855793
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75539a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:52:52.811774
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7715060710906982 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:53:04.592268
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:53:33.046759
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755376f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7714841365814209 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:53:43.149229
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:53:53.002359
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e56f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7925114631652832 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:54:02.891725
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:54:32.282624
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7716391086578369 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:54:42.227634
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75f30750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f30750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f30750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:54:52.158713
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755436f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7705192565917969 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:55:03.824150
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:55:32.401103
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7725327014923096 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:55:42.389867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755419f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755419f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755419f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:55:52.426954
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7721185684204102 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:56:03.370943
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75499a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:56:32.654251
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7770555019378662 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:56:42.667878
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75554a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:56:52.636402
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.769113302230835 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:57:04.414062
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x76197790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76197790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76197790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:57:33.034845
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7743809223175049 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:57:42.872844
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75524930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:57:52.864901
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7882299423217773 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:59:03.605101
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75529950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:59:32.504527
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7769629955291748 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 18:59:42.602919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 18:59:52.501646
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7805831432342529 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:00:03.436499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a5ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:00:32.717612
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755177d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7823953628540039 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:00:42.775920
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f3a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:00:52.675794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7723937034606934 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:01:04.202602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ec990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:01:32.954161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e37d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7744741439819336 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:01:42.964218
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755568f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755568f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755568f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:01:53.020836
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7802841663360596 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:02:02.874905
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754faa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754faa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754faa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:02:32.286210
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7732014656066895 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:02:42.252799
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:02:52.217282
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755335b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7722113132476807 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:03:03.658123
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75549b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:03:32.509174
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7717728614807129 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:03:42.507272
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:03:52.556412
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7815275192260742 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:04:03.416775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:04:32.769281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f0790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7688913345336914 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:04:42.798618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:04:52.762068
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7687497138977051 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:05:04.612045
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75563a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:05:33.171508
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7795777320861816 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:05:42.965771
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:05:53.149384
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755336b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7774107456207275 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:06:03.050199
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7624b770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7624b770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7624b770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:06:32.376103
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7740368843078613 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:06:42.378153
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75499a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:06:52.387918
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7714536190032959 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:07:04.115889
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75562ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:07:32.616335
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7734253406524658 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:07:42.585288
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:07:52.726827
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7793231010437012 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:08:03.551497
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75541ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:08:32.921941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.77103590965271 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:08:43.037928
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:08:52.912540
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7811999320983887 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:09:04.537926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75517ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:09:33.156261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7748827934265137 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:09:43.268443
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:09:53.128937
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f86d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7737913131713867 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:10:02.938863
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:10:32.375331
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7829663753509521 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:10:42.374012
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755649d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755649d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755649d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:10:52.364098
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755036f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7712433338165283 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:11:04.204858
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aa9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:11:32.632118
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7767603397369385 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:11:42.602149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75578a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:11:52.604516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7782950401306152 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:12:03.614359
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:12:32.915619
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7724580764770508 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:12:42.922312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755699d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755699d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755699d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:12:52.893969
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d46f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7742910385131836 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:13:04.288044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:13:33.142157
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7760155200958252 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:13:43.083230
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:13:53.097486
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7762486934661865 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:14:03.068368
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75519a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:14:32.293349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.775742769241333 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:14:42.379211
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:14:52.307079
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7746889591217041 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:15:04.053791
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75540a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:15:32.565909
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7708168029785156 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:15:42.516911
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:15:52.509515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755696b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7834038734436035 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:16:03.476330
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754be9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:16:32.765304
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8045966625213623 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:16:42.824392
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:16:52.800031
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7740528583526611 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:17:04.392110
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:17:33.041899
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7720272541046143 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:17:43.001472
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:17:53.034280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f36f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7884294986724854 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:18:02.830499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75490a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:18:32.236615
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7723515033721924 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:18:42.243700
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755539d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755539d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755539d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:18:52.226660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7725095748901367 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:19:03.963054
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:19:32.603877
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b96d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7759749889373779 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:19:42.439451
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:19:52.416889
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7757754325866699 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:20:03.169562
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:20:32.628164
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.773390531539917 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:20:42.696073
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75500970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:20:52.588713
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7754569053649902 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:21:04.060029
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ed990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:21:32.880402
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e77d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7803025245666504 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:21:42.803251
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755508f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755508f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755508f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:21:52.958448
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7740986347198486 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:22:02.982327
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75511a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:22:32.180690
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e96b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.775468111038208 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:22:42.256177
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755128f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755128f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755128f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:22:52.260010
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7748112678527832 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:23:03.967968
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:23:32.602279
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.776190996170044 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:23:42.497071
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:23:52.469387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755316f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7851142883300781 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:24:03.369264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75537a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:24:32.699459
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7783544063568115 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:24:42.674044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75563a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:24:52.623216
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7806448936462402 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:25:04.309884
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75498af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:25:32.828546
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755275d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7776055335998535 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:25:42.908121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755459f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755459f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755459f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:25:52.855255
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7827434539794922 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:26:03.818420
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75528970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:26:33.208366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7766458988189697 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:26:43.161146
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:26:53.076416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7825648784637451 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:27:03.510548
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cba90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cba90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cba90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:27:32.342395
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b95b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7820448875427246 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:27:42.339623
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:27:52.291309
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7768070697784424 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:28:03.184340
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75569a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:28:32.476676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755566b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7766594886779785 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:28:42.487471
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755469f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755469f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755469f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:28:52.462045
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7740159034729004 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:29:04.119976
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:29:32.747303
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7803285121917725 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:29:42.752670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c5ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:29:52.729164
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7805273532867432 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:30:03.569387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75520a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:30:32.960930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7726330757141113 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:30:42.945014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549fa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549fa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549fa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:30:52.960471
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755355b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7753157615661621 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:31:03.490440
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c8ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:31:32.391051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754946b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7705621719360352 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:31:42.149202
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75535a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:31:52.240620
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f81710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7723815441131592 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:32:03.006817
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554ead0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ead0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ead0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:32:32.539819
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7777359485626221 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:32:42.464097
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75584a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:32:52.508253
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7730889320373535 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:33:03.849272
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:33:32.727747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7795255184173584 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:33:42.785906
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aa9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:33:52.737165
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7820653915405273 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:34:03.582803
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548b8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548b8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548b8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:34:32.994894
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755147b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7772998809814453 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:34:42.960348
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75512a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:34:52.989553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f1570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7768833637237549 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:35:03.889264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x76227730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76227730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76227730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:35:32.182566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x761bd7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7767074108123779 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:35:42.209573
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:35:52.172380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755535b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.773061990737915 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:36:03.095943
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:36:32.366315
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7784597873687744 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:36:42.368747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:36:52.348262
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7702181339263916 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:37:03.763853
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ac9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:37:32.586786
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7725248336791992 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:37:42.685997
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ff9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:37:52.594207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7778339385986328 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:38:03.498844
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:38:32.819719
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75589710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7847509384155273 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:38:42.819039
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:38:52.778802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f626d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7743325233459473 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:39:04.374264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755839f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755839f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755839f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:39:33.031540
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7799816131591797 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:39:43.004769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75507a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:39:52.995903
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d06d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7795093059539795 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:40:02.783411
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:40:32.191571
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755705f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7713577747344971 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:40:42.229681
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ae910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ae910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ae910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:40:52.180122
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7776036262512207 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:41:03.690021
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f2ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:41:32.362252
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7752640247344971 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:41:42.461584
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75547ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:41:52.402950
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7762928009033203 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:42:03.341291
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:42:32.615391
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7732458114624023 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:42:42.609860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:42:52.595740
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7835683822631836 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:43:04.263552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:43:32.890500
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7804763317108154 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:43:42.838778
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e8af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:43:52.869282
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.776709794998169 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:44:03.716976
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:44:33.118406
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7729766368865967 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:44:43.133698
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:44:53.067645
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755385f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7709136009216309 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:45:03.844396
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75584a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:45:32.292703
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552f710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.776242733001709 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:45:42.405314
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75532950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:45:52.328912
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7722623348236084 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:46:03.311291
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:46:32.672189
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7721037864685059 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:46:42.652132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75554a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:46:52.665319
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7732744216918945 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:47:04.594400
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:47:32.997575
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755266f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7755022048950195 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:47:42.869219
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75507a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:47:52.905199
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.775895357131958 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:48:03.679003
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:48:33.174012
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558e690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7700059413909912 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:48:43.225697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:48:53.166303
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558d5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.777961015701294 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:49:03.988487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75502a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:49:32.397044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7790403366088867 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:49:42.384346
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755809d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755809d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755809d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:49:52.379665
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7778973579406738 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:50:03.283355
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e8ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:50:32.610102
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7766754627227783 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:50:42.580982
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:50:53.532757
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75590710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7709922790527344 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:51:03.739701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:51:32.726182
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7759425640106201 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:51:42.732862
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:51:52.800524
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7789716720581055 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:52:03.795387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fb990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:52:33.032163
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7772138118743896 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:52:43.032662
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755088d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755088d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755088d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:52:53.012826
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558f6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7767214775085449 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:53:03.795046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b6ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:53:32.223743
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755496b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7791895866394043 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:53:42.271248
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x76181750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76181750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76181750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:53:52.270061
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7766551971435547 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:54:03.118070
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755689b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755689b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755689b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:54:32.462935
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7756648063659668 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:54:42.508622
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75511a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:54:52.451737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7760238647460938 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:55:04.174793
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75571a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:55:32.645372
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7776546478271484 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:55:42.666703
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75537ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:55:52.645601
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.777616024017334 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:56:03.589431
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75582910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:56:32.914093
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7800736427307129 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:56:42.919307
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:56:52.883196
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7786405086517334 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:57:04.299802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75518a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:57:33.138739
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75589730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.776519775390625 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:57:43.108095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:57:53.101833
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7831175327301025 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:59:04.062690
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d28b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d28b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d28b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:59:32.794681
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7772660255432129 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 19:59:42.791301
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75521a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 19:59:52.764095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7730154991149902 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:00:03.634338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75542a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:00:32.985364
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7704901695251465 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:00:43.043492
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75528a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:00:53.030936
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7778434753417969 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:01:03.835416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:01:32.282801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7769498825073242 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:01:42.248367
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75559b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:01:52.243706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7776622772216797 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:02:03.147764
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a38d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a38d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a38d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:02:32.515582
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755436f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7756264209747314 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:02:42.470618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ada10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ada10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ada10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:02:52.480737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7816369533538818 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:03:04.121464
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:03:32.716346
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7784669399261475 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:03:42.726585
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75570ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:03:52.723134
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7774600982666016 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:04:03.612842
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552e210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:04:33.017917
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b76d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7806446552276611 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:04:42.925668
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ba8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:04:53.025459
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755627b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7757778167724609 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:05:03.452825
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:05:32.261650
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7770407199859619 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:05:42.224835
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75488a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75488a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75488a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:05:52.249334
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7710046768188477 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:06:03.152238
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x76539f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76539f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76539f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:06:32.518981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75590710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7799808979034424 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:06:42.542454
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75569a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:06:52.445384
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fbe10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7759685516357422 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:07:04.093813
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:07:32.630088
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7710294723510742 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:07:42.624594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f9ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:07:52.637333
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a37d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7764999866485596 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:08:03.573354
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a4ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:08:32.894167
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7786266803741455 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:08:42.859430
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:08:52.830657
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755827b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7757434844970703 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:09:04.653738
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75514a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75514a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75514a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:09:33.017821
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7810587882995605 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:09:43.174110
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75496a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:09:53.050516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7dd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7824625968933105 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:10:02.858749
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:10:32.245051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7712740898132324 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:10:42.383372
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75524ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:10:52.372358
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7728948593139648 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:11:03.896694
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75513a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:11:32.623954
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d36d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7787055969238281 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:11:42.583453
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75550550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:11:52.630040
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7819011211395264 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:12:03.538120
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:12:32.875052
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b07d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.773310661315918 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:12:42.830828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:12:52.876433
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558f710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7791435718536377 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:13:04.521142
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:13:33.106763
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7761561870574951 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:13:43.097443
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755039b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755039b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755039b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:13:53.062983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7775387763977051 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:14:03.002700
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755269d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755269d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755269d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:14:32.267542
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7738285064697266 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:14:42.263642
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:14:52.245740
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755817d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7783124446868896 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:15:03.853999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f3a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:15:32.488918
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755885b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7775678634643555 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:15:42.483335
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75f2f670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f2f670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f2f670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:15:52.424956
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f5750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7771060466766357 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:16:03.522387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d2930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:16:32.670530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7729239463806152 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:16:42.641379
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75512a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:16:52.732730
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.776540994644165 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:17:04.285076
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:17:32.953046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755076f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7822206020355225 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:17:42.996422
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:17:52.995470
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7775797843933105 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:18:02.899344
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:18:32.223652
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d85d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7716832160949707 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:18:42.264845
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75523a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:18:52.189616
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d36f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7743604183197021 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:19:03.893179
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:19:32.415519
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558d550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7813987731933594 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:19:42.396116
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75570ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:19:52.405377
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7727344036102295 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:20:03.317161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:20:32.607276
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75514550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7776811122894287 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:20:42.607625
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75522a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:20:52.664429
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7717747688293457 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:21:04.231474
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75544990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:21:32.918680
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7825927734375 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:21:42.884448
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x76162790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76162790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76162790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:21:52.880054
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755236f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7832546234130859 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:22:03.760826
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f6910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:22:33.090501
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7791347503662109 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:22:43.049499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75520a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:22:53.050290
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755626d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7725162506103516 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:23:03.553103
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75561a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:23:32.279532
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75589710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7766389846801758 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:23:42.432645
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755649b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755649b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755649b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:23:52.276833
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7745156288146973 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:24:03.103749
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a0a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:24:32.479803
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7849075794219971 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:24:42.489808
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755378f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755378f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755378f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:24:52.472046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d56d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7808406352996826 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:25:04.198021
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75539a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:25:32.720779
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755115d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7820680141448975 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:25:42.660658
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75530a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:25:52.719550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d46b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7799849510192871 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:26:03.494731
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:26:32.976013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7784476280212402 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:26:42.895293
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754889b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754889b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754889b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:26:53.015397
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7783517837524414 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:27:03.593955
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dd890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:27:32.232010
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7711176872253418 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:27:42.264022
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75495a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:27:52.226052
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e56d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7767984867095947 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:28:03.089847
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551aa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551aa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551aa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:28:32.493012
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7783236503601074 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:28:42.474025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:28:52.455664
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7823886871337891 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:29:04.288158
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75538a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:29:32.727171
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7741580009460449 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:29:42.860491
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bc8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:29:52.641671
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a26b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.778764009475708 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:30:03.404166
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755848f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755848f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755848f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:30:32.963279
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.781714916229248 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:30:42.882623
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755249d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755249d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755249d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:30:52.900875
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.771744966506958 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:31:04.564248
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c3a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:31:33.093901
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7741057872772217 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:31:43.230413
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e4570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:31:53.091072
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.779076099395752 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:32:03.024630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75498a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:32:32.387624
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c17b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7797019481658936 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:32:42.391296
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fbb10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fbb10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fbb10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:32:52.317737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d05b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7714557647705078 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:33:04.018528
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:33:32.523867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.773284912109375 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:33:42.602955
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:33:52.533613
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7717857360839844 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:34:03.406299
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:34:32.754529
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7716085910797119 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:34:42.813553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75585a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75585a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75585a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:34:52.824290
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7743363380432129 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:35:04.210688
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:35:33.115521
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755735d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7735447883605957 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:35:43.031095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75501930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:35:53.010293
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7873048782348633 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:36:02.904999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:36:32.259955
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ae710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7740151882171631 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:36:42.262887
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75fa87f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fa87f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fa87f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:36:52.190221
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7707808017730713 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:37:03.742783
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a58f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a58f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a58f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:37:32.503776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7828609943389893 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:37:42.413424
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:37:52.442773
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7789573669433594 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:38:03.312053
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ff8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:38:32.670943
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7726423740386963 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:38:42.617567
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75586970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:38:52.748446
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75590570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7719578742980957 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:39:04.485146
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75568a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:39:32.979955
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7728853225708008 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:39:42.997383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75563950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:39:52.957391
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e96f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7808427810668945 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:40:02.771675
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e4a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:40:32.134853
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f895b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7774498462677002 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:40:42.152274
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:40:52.151804
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7741978168487549 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:41:03.556907
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aa9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:41:32.486212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754917b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7733893394470215 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:41:42.371139
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75561590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:41:52.322720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b96f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7767834663391113 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:42:03.312024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d3ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d3ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d3ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:42:32.532362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755646f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7724707126617432 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:42:42.496372
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754998f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754998f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754998f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:42:52.478167
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7737152576446533 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:43:04.113170
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:43:32.736502
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7743864059448242 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:43:42.706473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e5a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:43:52.726488
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755227d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7736647129058838 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:44:03.479348
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754edad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754edad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754edad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:44:32.907137
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75585730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7766485214233398 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:44:42.937331
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x76495f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76495f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76495f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:44:53.105720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754977b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.776902437210083 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:45:03.557307
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:45:32.363543
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755597d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7849996089935303 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:45:42.362254
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:45:52.355694
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7774991989135742 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:46:03.271593
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75504a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:46:32.576896
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552f710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.783637285232544 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:46:42.608602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:46:52.544914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7743263244628906 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:47:04.105773
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75544970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:47:32.775755
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755486f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7752749919891357 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:47:42.797385
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75489a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:47:52.778748
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7795939445495605 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:48:03.664772
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755489b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755489b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755489b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:48:32.994539
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556c590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7741334438323975 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:48:43.029566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:48:53.005371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.778972864151001 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:49:03.779698
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552da70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552da70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552da70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:49:32.198965
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ae750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7736830711364746 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:49:42.211615
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754959f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754959f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754959f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:49:52.345804
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7743301391601562 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:50:03.396555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75489ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:50:32.528713
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7777118682861328 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:50:42.549696
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75534a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:50:52.635840
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7745370864868164 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:51:04.209721
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:51:32.857433
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7823162078857422 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:51:42.961223
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75542970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:51:52.871710
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7807433605194092 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:52:03.696701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:52:33.090355
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a16d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7849862575531006 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:52:43.219217
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75546a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:52:53.061109
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7728254795074463 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:53:03.920872
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755249b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755249b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755249b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:53:32.359369
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7801980972290039 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:53:42.308699
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755639b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755639b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755639b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:53:52.454925
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7780051231384277 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:54:03.237458
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75543930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:54:32.671366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7749137878417969 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:54:42.666798
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75536a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:54:52.693002
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7780320644378662 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:55:04.349632
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75521a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:55:32.923533
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7823886871337891 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:55:43.094786
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:55:53.024408
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.9177334308624268 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:56:03.075512
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75503890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:56:32.288917
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e9630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.779879093170166 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:56:42.330469
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:56:52.219354
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.773003101348877 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:57:03.963221
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554f8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:57:32.496107
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7787270545959473 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:57:42.491269
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75509950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:57:52.410544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.778362512588501 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:59:03.915550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d2a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:59:32.980088
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7790675163269043 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 20:59:42.858933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75549a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 20:59:52.869827
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c55d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7873561382293701 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:00:03.742008
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:00:33.147873
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75505630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7792277336120605 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:00:43.166471
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:00:53.061072
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7805123329162598 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:01:03.758536
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755219b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755219b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755219b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:01:32.298995
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7795677185058594 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:01:42.290078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75529950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:01:52.306251
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755796f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7774562835693359 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:02:03.148766
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75488990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75488990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75488990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:02:32.479614
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558b6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7829074859619141 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:02:42.498391
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b3a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:02:52.494393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f07b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7778637409210205 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:03:03.856280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:03:32.740850
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7752997875213623 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:03:42.864295
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75561a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:03:52.735475
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7848575115203857 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:04:03.707620
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:04:32.936894
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7833046913146973 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:04:42.919954
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b3950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:04:52.919636
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.776233434677124 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:05:04.755519
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d4b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:05:33.304482
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7720043659210205 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:05:43.220677
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:05:53.171200
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e27b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7783992290496826 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:06:02.986224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dd970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:06:32.361568
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7777700424194336 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:06:42.389319
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75575a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:06:52.344678
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7772595882415771 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:07:04.055994
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:07:32.595582
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7798275947570801 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:07:42.640743
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755839f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755839f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755839f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:07:52.712403
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.785496711730957 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:08:03.551232
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:08:32.888286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7818598747253418 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:08:42.925147
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b0b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:08:52.880952
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7798519134521484 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:09:04.559367
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e9a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e9a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e9a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:09:33.091250
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7829265594482422 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:09:43.112077
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755669b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755669b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755669b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:09:53.106628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f11870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7797565460205078 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:10:03.018622
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:10:32.329130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7787570953369141 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:10:42.323810
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:10:52.392972
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7796497344970703 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:11:03.927429
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755291b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755291b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755291b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:11:32.626526
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7830097675323486 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:11:42.602570
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754918b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754918b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754918b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:11:52.577155
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755227b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7773904800415039 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:12:03.436335
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755359f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755359f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755359f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:12:32.802283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7817490100860596 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:12:42.764790
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75579a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:12:52.779091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7770788669586182 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:13:03.891541
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:13:32.986081
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755127b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7725141048431396 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:13:42.988655
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554a550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:13:53.111526
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7772347927093506 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:14:03.106354
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:14:32.299945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7753381729125977 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:14:42.414160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556ca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:14:52.311203
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558d770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7828412055969238 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:15:04.131358
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e2a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:15:32.614851
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7771627902984619 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:15:42.579091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75567a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:15:52.543402
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755536b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.9063661098480225 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:16:03.382828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75547ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:16:32.759389
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755897b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7770664691925049 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:16:42.858103
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:16:52.779788
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7739098072052002 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:17:04.403670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754feab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754feab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754feab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:17:33.011332
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75505730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7797954082489014 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:17:43.020492
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:17:53.024444
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7789690494537354 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:18:02.804381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75517ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:18:32.184311
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7767915725708008 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:18:42.172421
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:18:52.171969
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e76b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7759158611297607 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:19:03.683927
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d6970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:19:32.418910
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7889358997344971 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:19:42.414280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:19:52.409283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f1810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7750868797302246 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:20:03.335632
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:20:32.625821
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7789573669433594 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:20:42.681221
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75571990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:20:52.640228
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f0750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7733120918273926 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:21:04.317989
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:21:32.970391
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755356d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8168461322784424 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:21:42.867292
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:21:52.927961
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7893679141998291 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:22:03.872319
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:22:33.120680
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7808120250701904 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:22:43.231078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:22:53.287554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7857091426849365 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:23:04.106484
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75575970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:23:32.654777
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b45d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7740347385406494 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:23:42.499351
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754be9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:23:52.524043
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7771875858306885 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:24:03.349423
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:24:32.726200
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755536b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7868833541870117 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:24:42.728836
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:24:52.752933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7838983535766602 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:25:04.300571
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75580910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:25:33.047944
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7758641242980957 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:25:43.098209
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75528930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:25:52.926792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7801012992858887 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:26:03.725064
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bb9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:26:33.216889
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75589730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7789218425750732 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:26:43.134679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:26:53.148471
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7758753299713135 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:27:03.938414
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:27:32.359428
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fdd810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7748205661773682 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:27:42.380257
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75490ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:27:52.554748
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7751185894012451 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:28:03.436843
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a4a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:28:32.795854
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7729730606079102 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:28:42.769434
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754da9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:28:52.919284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7834131717681885 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:29:04.738161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75505a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75505a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75505a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:29:33.166027
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7730753421783447 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:29:43.136137
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75536970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:29:53.161004
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.780855655670166 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:30:03.058487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75540930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:30:32.358342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7758071422576904 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:30:42.386493
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:30:52.368916
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7785487174987793 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:31:04.003287
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:31:32.645061
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7817957401275635 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:31:42.616241
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ea9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:31:52.564197
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7786927223205566 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:32:03.276192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75543a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:32:32.748870
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7753114700317383 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:32:42.766659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:32:52.753224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755756d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7792179584503174 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:33:04.172786
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75496970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:33:33.121741
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7793357372283936 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:33:42.979507
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:33:53.006823
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7797510623931885 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:34:02.986353
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:34:32.240783
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7747666835784912 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:34:42.170258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75533a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:34:52.215243
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75505650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7768619060516357 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:35:03.721971
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:35:32.499666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755097d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7816290855407715 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:35:42.532102
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75511a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:35:52.413338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7839639186859131 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:36:03.353814
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:36:32.630226
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7762818336486816 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:36:42.618373
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fe930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:36:52.631521
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7881760597229004 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:37:03.969400
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:37:32.827731
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7728095054626465 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:37:42.853507
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:37:52.859207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2dd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7776219844818115 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:38:03.940090
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75490990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:38:33.051987
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b46b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7831375598907471 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:38:43.084743
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75528930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:38:53.145247
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7787761688232422 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:39:03.453815
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c7a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:39:32.496032
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.775672197341919 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:39:42.464170
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:39:52.413517
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7797303199768066 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:40:03.290905
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75487a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:40:32.615664
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7776050567626953 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:40:42.621903
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bd910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:40:52.578466
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7752687931060791 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:41:04.277567
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75564a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:41:32.860872
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7657df90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7764010429382324 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:41:42.774447
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548ca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:41:52.821132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7901952266693115 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:42:03.554555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75556970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:42:33.007145
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f0790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7735133171081543 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:42:43.091607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552e5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:42:53.019142
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7736895084381104 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:43:03.531629
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75544ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:43:32.267769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755396b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.784498929977417 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:43:42.247701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754db9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:43:52.236949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7764561176300049 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:44:03.218043
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d8a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:44:32.460466
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755367b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7738099098205566 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:44:42.524211
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:44:52.435310
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7756178379058838 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:45:04.242581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75535a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:45:32.674012
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7848799228668213 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:45:42.714523
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:45:52.678574
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7865204811096191 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:46:03.573008
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:46:32.882684
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7758033275604248 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:46:42.985407
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:46:52.860057
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b97b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.776353120803833 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:47:04.340679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:47:33.097481
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7805449962615967 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:47:43.107332
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755489f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755489f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755489f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:47:53.089519
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755346d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7796471118927002 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:48:02.963011
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:48:32.317857
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755737b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7797577381134033 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:48:42.343049
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75511990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:48:52.304432
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7738749980926514 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:49:03.984362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dd9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:49:32.502853
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7793295383453369 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:49:42.522202
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75513270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:49:52.509949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556c5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7819077968597412 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:50:03.415185
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75536a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:50:32.745449
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7757546901702881 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:50:42.756293
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75556970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:50:52.724993
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7887766361236572 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:51:04.234212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:51:32.951164
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7880866527557373 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:51:43.010322
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755529d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755529d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755529d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:51:52.939822
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7791194915771484 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:52:03.827954
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754969b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754969b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754969b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:52:33.102977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.782203197479248 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:52:43.159983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f9a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:52:53.165724
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.780292272567749 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:53:03.710474
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c8890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:53:32.405408
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755675b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7816009521484375 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:53:42.402214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755289d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755289d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755289d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:53:52.476836
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.780524730682373 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:54:03.362885
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75575a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:54:32.707124
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558c730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7850360870361328 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:54:42.741387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:54:52.699282
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76230770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7770721912384033 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:55:03.956498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c2ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:55:32.910749
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754976f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7865326404571533 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:55:42.930582
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75fd3570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fd3570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fd3570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:55:52.893983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7758872509002686 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:56:03.653263
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:56:33.161126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a56f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7831811904907227 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:56:43.099699
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:56:53.225387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7818756103515625 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:57:03.778356
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75565a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:57:32.515907
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7733409404754639 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:57:42.461394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754efa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754efa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754efa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:57:52.458910
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7814066410064697 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:59:04.398028
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:59:33.136543
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7801837921142578 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 21:59:43.089027
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b7a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 21:59:53.142590
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7834763526916504 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:00:03.108618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c1a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:00:32.328746
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7754981517791748 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:00:42.366390
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75546a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:00:52.345059
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755487b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7814445495605469 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:01:03.883313
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:01:32.570986
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e67f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7774491310119629 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:01:42.560472
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dda90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dda90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dda90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:01:52.675369
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7774510383605957 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:02:03.526384
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:02:32.899697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7840468883514404 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:02:42.976311
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75574a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:02:52.841007
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7837848663330078 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:03:04.398802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dfad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:03:33.183014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7763864994049072 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:03:43.060464
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75543950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:03:53.153002
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7805328369140625 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:04:03.025136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:04:32.462694
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7849845886230469 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:04:42.383149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75576a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:04:52.336735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.774315357208252 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:05:03.994062
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755039d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755039d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755039d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:05:32.671924
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7739794254302979 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:05:42.551677
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:05:52.670618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7797756195068359 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:06:03.751323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:06:32.868367
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755017b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.784820556640625 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:06:42.892187
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:06:52.885271
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f26b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7811737060546875 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:07:04.546029
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:07:33.087594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7826828956604004 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:07:43.199049
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:07:53.025096
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7852866649627686 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:08:03.005326
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cc950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:08:32.310386
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755737b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7825009822845459 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:08:42.304003
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:08:52.279283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7766997814178467 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:09:03.996013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:09:32.649654
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7837622165679932 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:09:42.506766
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75489ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:09:52.535370
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7929244041442871 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:10:03.382026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:10:32.727931
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7755067348480225 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:10:42.773153
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:10:52.748941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754956d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7898805141448975 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:11:04.478847
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:11:32.997965
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7902646064758301 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:11:43.004366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555daf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555daf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555daf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:11:52.965270
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755804d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7815701961517334 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:12:02.861816
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:12:32.172575
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7800967693328857 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:12:42.157954
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75547a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:12:52.116653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558e610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7756221294403076 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:13:03.639574
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75579a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:13:32.413770
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7771143913269043 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:13:42.349747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75586a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:13:52.374060
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e47f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7855734825134277 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:14:03.494034
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75f6c650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f6c650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f6c650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:14:32.645611
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7797286510467529 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:14:42.602892
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755509b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755509b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755509b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:14:52.623300
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7812700271606445 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:15:04.319163
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:15:32.809110
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f37f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7803723812103271 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:15:42.948177
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552e950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:15:52.795808
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75573770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7772138118743896 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:16:03.781669
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755059d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755059d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755059d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:16:33.085687
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7873489856719971 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:16:43.118232
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cd950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:16:53.091855
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755206f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7743747234344482 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:17:03.746252
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75494950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:17:32.278060
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7744660377502441 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:17:42.274983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75545950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:17:52.407823
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7766745090484619 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:18:03.340376
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:18:32.644472
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755576d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7869148254394531 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:18:42.634128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:18:52.620312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755616f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7852940559387207 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:19:04.073105
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754939d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754939d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754939d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:19:33.003698
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755616b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8231730461120605 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:19:43.044393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:19:52.857305
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554fe70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7814409732818604 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:20:03.817666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75510930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:20:33.092676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7879519462585449 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:20:43.069248
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:20:53.039727
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7850043773651123 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:21:03.584874
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:21:32.349757
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7799873352050781 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:21:42.238920
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b3ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:21:52.270687
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a96d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7805533409118652 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:22:03.152688
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:22:32.517516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7817521095275879 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:22:42.500015
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:22:52.485600
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755116f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7838327884674072 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:23:04.202821
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:23:32.722265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7770328521728516 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:23:42.732461
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:23:52.711723
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7816247940063477 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:24:03.639130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75504a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:24:32.978515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755606f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7795271873474121 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:24:43.064409
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75582910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:24:52.932244
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7817544937133789 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:25:04.708893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75550a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:25:33.146779
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.776592493057251 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:25:43.206833
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:25:53.099949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75590750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.774489164352417 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:26:02.931608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75511950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:26:32.411603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.787621259689331 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:26:42.411454
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:26:52.275520
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755066f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7794559001922607 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:27:03.993235
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75519a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:27:32.503658
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7802102565765381 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:27:42.491127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75557a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:27:52.563492
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7797186374664307 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:28:03.404361
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b4a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:28:32.880105
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558e730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7911784648895264 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:28:42.820075
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:28:52.873506
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7779500484466553 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:29:04.442304
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75501a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:29:33.109209
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7811949253082275 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:29:43.245584
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75500930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:29:53.220442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.781353235244751 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:30:03.097517
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75494a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:30:32.426040
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7930350303649902 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:30:42.390383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755489d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755489d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755489d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:30:52.397964
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7818267345428467 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:31:04.084852
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:31:32.622316
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7849431037902832 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:31:42.679600
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:31:52.722039
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755535d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7895915508270264 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:32:03.688613
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:32:32.983712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b85b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7797789573669434 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:32:42.905555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:32:52.913391
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7852895259857178 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:33:04.448233
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755169d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755169d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755169d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:33:33.214464
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7771573066711426 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:33:43.114446
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75489950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:33:53.257864
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755326d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7815237045288086 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:34:03.214999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755259f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755259f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755259f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:34:32.467899
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7783963680267334 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:34:42.482886
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551b610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:34:52.456141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7772464752197266 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:35:04.164707
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:35:32.748530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558c550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7754833698272705 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:35:42.766239
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75574950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:35:52.895010
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7799129486083984 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:36:03.894405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755209f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755209f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755209f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:36:33.130862
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7865560054779053 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:36:43.124766
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a08d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a08d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a08d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:36:53.115531
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7830235958099365 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:37:03.853116
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75561a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:37:32.317681
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7773020267486572 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:37:42.312038
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755639d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755639d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755639d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:37:52.380875
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7858083248138428 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:38:03.310121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:38:32.641127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7905130386352539 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:38:42.693998
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75501a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:38:52.578856
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7799704074859619 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:39:04.155986
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ed9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:39:32.834352
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7772724628448486 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:39:42.882845
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x759d7bf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x759d7bf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x759d7bf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:39:52.844955
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7859339714050293 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:40:03.694924
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:40:33.061349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ccdf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7769386768341064 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:40:43.035328
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:40:53.031041
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7853379249572754 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:41:03.769322
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75485a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75485a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75485a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:41:32.320501
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7834265232086182 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:41:42.268428
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75559a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:41:52.210353
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f0750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7750856876373291 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:42:03.028925
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:42:32.463804
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a07b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7790184020996094 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:42:42.377761
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75535a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:42:52.368679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f57d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.777198076248169 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:43:03.712330
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75514a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75514a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75514a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:43:32.590740
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.78397536277771 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:43:42.602765
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:43:52.554253
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755646f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.774634599685669 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:44:03.448105
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75513a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:44:32.753967
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7782454490661621 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:44:42.762051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x76576f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76576f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76576f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:44:52.775904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.827162504196167 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:45:04.529101
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:45:33.087303
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7897861003875732 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:45:43.064791
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75566a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:45:52.999371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7871859073638916 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:46:02.880804
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:46:32.388657
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7770395278930664 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:46:42.229815
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755279f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755279f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755279f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:46:52.227453
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7856676578521729 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:47:03.743506
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755239f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755239f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755239f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:47:32.728348
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7781574726104736 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:47:42.530078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:47:52.647046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7794311046600342 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:48:03.396480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d8a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:48:32.771098
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f218d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7776823043823242 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:48:42.826772
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:48:52.785099
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7804203033447266 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:49:04.392643
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:49:33.029296
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b46d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7751083374023438 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:49:42.991284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:49:53.055719
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.782036542892456 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:50:02.814946
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:50:32.273203
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755786d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7754116058349609 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:50:42.279849
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:50:52.294033
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7757818698883057 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:51:04.086477
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fcab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fcab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fcab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:51:32.612874
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7946300506591797 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:51:42.524501
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75497a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:51:52.503175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e46d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7807018756866455 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:52:03.483385
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75561a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:52:32.780593
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7822818756103516 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:52:42.710830
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:52:52.883063
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.783729076385498 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:53:04.490280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755059f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755059f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755059f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:53:33.194586
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d3530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7872326374053955 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:53:43.168419
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75523a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:53:53.104421
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a16b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7874343395233154 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:54:03.017375
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75532a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:54:32.276463
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7786645889282227 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:54:42.249175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:54:52.251383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755796f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7874555587768555 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:55:03.825190
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75555990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:55:32.609212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755626f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7907490730285645 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:55:42.490328
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755369b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755369b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755369b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:55:52.488590
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.9106388092041016 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:56:03.276110
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:56:32.676035
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b16d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7817387580871582 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:56:42.764640
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755619f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755619f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755619f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:56:52.664096
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7847974300384521 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:57:04.512591
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75550a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:57:33.008465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7830345630645752 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:57:42.886363
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e1a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:57:52.951062
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.785529613494873 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:59:04.010411
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:59:32.841236
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755366f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7807109355926514 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 22:59:42.732427
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75547a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 22:59:52.766348
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7845108509063721 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:00:03.609687
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:00:32.982353
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7785210609436035 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:00:43.014456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:00:52.980442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.783151388168335 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:01:03.594324
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:01:32.253023
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.783545732498169 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:01:42.263018
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75516950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:01:52.211339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75589630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7838776111602783 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:02:02.969898
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bead0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bead0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bead0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:02:32.413735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7808401584625244 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:02:42.431144
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75559970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:02:52.427574
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7771663665771484 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:03:04.268699
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75543990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:03:32.715485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755825d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7777764797210693 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:03:42.712174
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75493a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:03:52.662778
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7780661582946777 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:04:03.449801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:04:32.914737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7770001888275146 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:04:42.890553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75519910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:04:52.909248
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755266d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7867894172668457 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:05:04.643286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ca9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:05:33.249011
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f96f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7856276035308838 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:05:43.106367
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:05:53.148760
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7803683280944824 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:06:02.988849
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:06:32.407448
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7866048812866211 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:06:42.383931
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ea930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:06:52.433447
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.777843713760376 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:07:04.015749
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fba90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fba90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fba90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:07:32.712723
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7861402034759521 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:07:42.688265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c0890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:07:52.636489
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7794585227966309 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:08:03.446958
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cda70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cda70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cda70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:08:32.965071
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.789374828338623 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:08:42.892514
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75503950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:08:52.943770
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755116f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7949376106262207 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:09:04.221678
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aaa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aaa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aaa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:09:33.145983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.792057991027832 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:09:43.152490
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:09:53.256678
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7761530876159668 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:10:03.212412
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75580a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:10:32.595904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.782137393951416 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:10:42.451895
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75499a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:10:52.445388
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7815036773681641 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:11:04.133977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75537a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:11:32.634282
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755625d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7835090160369873 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:11:42.656712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:11:52.872925
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7759592533111572 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:12:03.881618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:12:33.079530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f76b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7834672927856445 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:12:43.132871
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75525a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:12:53.076373
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x761befd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.786376953125 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:13:03.828202
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755128f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755128f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755128f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:13:32.290325
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75590730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7780308723449707 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:13:42.327647
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:13:52.397084
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fbf410>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7806153297424316 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:14:03.359034
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755115b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755115b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755115b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:14:32.630739
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7865521907806396 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:14:42.634378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:14:52.627168
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7816371917724609 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:15:04.271367
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755059b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755059b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755059b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:15:32.856987
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754985d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7766578197479248 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:15:42.842506
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75577a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:15:52.863570
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755906b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7823467254638672 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:16:03.903116
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75580a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:16:33.153745
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7796602249145508 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:16:43.110761
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:16:53.219055
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755186d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7893414497375488 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:17:03.499567
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75486a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75486a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75486a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:17:32.539243
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7896425724029541 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:17:42.413419
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:17:52.427003
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7758016586303711 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:18:03.256114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75503a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:18:32.617434
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7781426906585693 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:18:42.632774
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75562970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:18:52.644871
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7760753631591797 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:19:04.434307
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c5990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:19:32.821242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7799620628356934 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:19:42.910129
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75561a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:19:52.835730
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7851641178131104 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:20:03.798817
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c3910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:20:33.100630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7782552242279053 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:20:43.110339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75549a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:20:53.093517
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7844834327697754 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:21:03.461819
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75516a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:21:32.366965
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7785086631774902 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:21:42.303687
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75564a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:21:52.362945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75591550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7807936668395996 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:22:03.299336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:22:32.550572
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7761092185974121 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:22:42.547598
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dfa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:22:52.545742
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755526f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7825779914855957 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:23:04.241214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75585a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75585a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75585a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:23:32.775277
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f4d630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7929236888885498 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:23:42.771793
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75585a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75585a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75585a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:23:52.759753
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.782545804977417 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:24:03.757329
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755099f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755099f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755099f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:24:33.017064
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7830753326416016 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:24:42.946140
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:24:53.011812
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7766435146331787 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:25:03.814411
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:25:32.339721
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7863214015960693 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:25:42.212337
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755648f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755648f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755648f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:25:52.249750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7818505764007568 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:26:03.151889
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eeab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eeab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eeab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:26:32.480184
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7832961082458496 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:26:42.503531
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755538d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755538d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755538d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:26:52.418286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a16b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7812652587890625 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:27:04.107712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:27:32.638222
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.781644344329834 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:27:42.642782
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:27:52.661529
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c97b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7796065807342529 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:28:03.626434
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:28:32.896388
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755355b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7879106998443604 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:28:42.891322
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:28:52.882156
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f3c6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.782090425491333 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:29:04.291346
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75531930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:29:34.309135
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7845799922943115 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:29:43.139505
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:29:53.116675
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.788672924041748 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:30:03.131318
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:30:32.341489
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755816d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7837505340576172 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:30:42.399572
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75570af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:30:52.368421
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7770686149597168 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:31:04.032440
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551aa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551aa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551aa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:31:32.534834
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d86b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7835328578948975 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:31:42.586981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75502a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:31:52.527428
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755176d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.779036283493042 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:32:03.390941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:32:32.759701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7911641597747803 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:32:42.745471
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75502a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:32:52.748309
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7852725982666016 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:33:04.307837
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:33:32.990629
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.796356201171875 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:33:43.002876
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:33:52.973110
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc6f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7769801616668701 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:34:02.842159
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:34:32.179579
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b27d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7773885726928711 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:34:42.159533
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:34:52.170742
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7804079055786133 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:35:03.881085
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75556a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:35:32.381103
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7620a7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.775904655456543 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:35:42.337581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:35:52.483905
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7990765571594238 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:36:03.437044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75506a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:36:32.721516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558b710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7928416728973389 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:36:42.719599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75575a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:36:52.645295
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f95b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7816836833953857 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:37:04.293439
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c3930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:37:32.947162
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76532f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7766966819763184 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:37:42.956107
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:37:52.847713
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7912609577178955 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:38:03.546920
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d2a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:38:33.157904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755175b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7926373481750488 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:38:43.090499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75526990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:38:53.040060
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7884953022003174 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:39:03.653261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75525ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:39:32.365435
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7841408252716064 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:39:42.314142
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:39:52.296090
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7785203456878662 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:40:03.269096
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755319d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755319d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755319d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:40:32.491549
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e16b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.784019947052002 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:40:42.508211
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552baf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552baf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552baf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:40:52.479589
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7785604000091553 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:41:03.970544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75517a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:41:32.750986
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f46f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7791163921356201 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:41:42.745130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fd930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:41:52.643043
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7791564464569092 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:42:03.517635
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e89d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e89d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e89d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:42:32.871049
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7794234752655029 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:42:42.979979
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75559a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:42:52.871505
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755386d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7862231731414795 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:43:04.133911
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ac5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:43:33.150571
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7866299152374268 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:43:43.067142
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fa9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:43:53.013747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7804391384124756 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:44:02.929296
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75547590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:44:32.318899
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7889204025268555 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:44:42.242975
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755609d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755609d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755609d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:44:52.241853
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7794032096862793 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:45:03.886098
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75498a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:45:32.539157
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7832455635070801 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:45:42.553713
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:45:52.511065
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7757718563079834 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:46:03.439765
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755709d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755709d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755709d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:46:32.729590
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7766637802124023 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:46:42.740469
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:46:52.701330
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7830579280853271 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:47:04.496137
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:47:32.912389
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f954d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7798340320587158 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:47:42.999265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:47:52.934020
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f1710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7880287170410156 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:48:03.558218
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75b3d730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b3d730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b3d730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:48:33.124802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755536f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7810547351837158 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:48:43.135937
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:48:53.156697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755657b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7944259643554688 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:49:03.746438
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ae990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ae990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ae990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:49:32.381832
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7826187610626221 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:49:42.351691
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75549a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:49:52.369332
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7852981090545654 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:50:03.328175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75574a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:50:32.665610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755456f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7826008796691895 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:50:42.597910
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75529a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:50:52.635823
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7845089435577393 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:51:04.408709
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75575a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:51:32.869392
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755876b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7803082466125488 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:51:42.826919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75540ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:51:52.868423
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7799737453460693 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:52:03.808494
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75583970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:52:33.082484
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7772476673126221 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:52:43.146142
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d6af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:52:53.108840
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7841849327087402 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:53:03.593565
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557a890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:53:32.291904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755395d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7830100059509277 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:53:42.298119
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:53:52.435368
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7914693355560303 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:54:03.235543
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548dab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548dab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548dab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:54:32.647781
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7818679809570312 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:54:42.703965
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aaa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aaa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aaa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:54:52.584504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755816b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7833096981048584 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:55:04.438435
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ffa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ffa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ffa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:55:32.855585
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.782658576965332 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:55:42.834945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:55:52.882512
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552db0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7826592922210693 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:56:03.675709
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:56:33.096233
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755166f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7830934524536133 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:56:43.092630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:56:53.130769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d36d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7898995876312256 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:57:03.756276
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ac990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -f /home/pi/Desktop/images -P https -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:57:32.363589
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7848870754241943 secondes ---
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2026-05-04 23:57:42.483850
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_04052026
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_04052026.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n dechet_valcor_0623 -u www.fotonower.com -P https -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 30 --only_old 1
2026-05-04 23:57:52.397616
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260504 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260404 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260405 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260406 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260407 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260408 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260409 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260410 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260411 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260412 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260413 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260414 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260415 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260416 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260417 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260418 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260419 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260420 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260421 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260422 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260423 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260424 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260425 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260426 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260427 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260428 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29042026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260429 ORDER BY id_local ASC LIMIT 6;
  port_id : 31041723
  datou_current_id : 4378433
in upload_from_sqlite, uploading in 31041723
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg', '/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg', '/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg', '/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg', '/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0
/home/pi/Desktop/images/29042026/17/40/image_29042026_17_41_26_40597.jpg
/home/pi/Desktop/images/29042026/17/41/image_29042026_17_42_06_39613.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_42_46_39588.jpg
/home/pi/Desktop/images/29042026/17/42/image_29042026_17_43_26_40735.jpg
/home/pi/Desktop/images/29042026/17/43/image_29042026_17_44_06_39576.jpg
/home/pi/Desktop/images/29042026/17/44/image_29042026_17_44_46_39590.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=4378433&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.7821240425109863 secondes ---
